From ae6b0a2fec29fd4df2c54f3ac80891d3e980a340 Mon Sep 17 00:00:00 2001 From: Roshan Date: Tue, 27 Dec 2022 15:47:58 +0800 Subject: [PATCH] fix: EIP712 issue with uint8[] type --- x/auth/tx/eip712.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/auth/tx/eip712.go b/x/auth/tx/eip712.go index 1dcd7af446..3657c27805 100644 --- a/x/auth/tx/eip712.go +++ b/x/auth/tx/eip712.go @@ -453,6 +453,9 @@ func traverseFields( // Support array of uint64 if isCollection && fieldType.Kind() != reflect.Slice && fieldType.Kind() != reflect.Array { ethTyp += "[]" + if ethTyp == "uint8[]" { + ethTyp = "string" + } } if prefix == typeDefPrefix {