Skip to content

Commit

Permalink
Merge pull request #80 from bnb-chain/wallet_support
Browse files Browse the repository at this point in the history
fix: EIP712 issue with uint8[] type
  • Loading branch information
pythonberg1997 authored Dec 29, 2022
2 parents b9169c2 + ae6b0a2 commit 61f69e8
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 61f69e8

Please sign in to comment.