Skip to content

Commit

Permalink
fix: EIP712 issue with uint8[] type
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Dec 27, 2022
1 parent b9169c2 commit ae6b0a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/auth/tx/eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ae6b0a2

Please sign in to comment.