Skip to content

Commit

Permalink
signer/core/apitypes: support primitive types int96/uint96 (ethereum#…
Browse files Browse the repository at this point in the history
…25105)

I have a EIP712 typehash using uint96, but it's currently not supported
by go-ethereum. This change fixes it.
  • Loading branch information
spkjp authored and cp-wjhan committed Sep 22, 2023
1 parent e521830 commit 27e6c30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions signer/core/apitypes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,8 @@ func isPrimitiveTypeValid(primitiveType string) bool {
primitiveType == "int32[]" ||
primitiveType == "int64" ||
primitiveType == "int64[]" ||
primitiveType == "int96" ||
primitiveType == "int96[]" ||
primitiveType == "int128" ||
primitiveType == "int128[]" ||
primitiveType == "int256" ||
Expand All @@ -800,6 +802,8 @@ func isPrimitiveTypeValid(primitiveType string) bool {
primitiveType == "uint32[]" ||
primitiveType == "uint64" ||
primitiveType == "uint64[]" ||
primitiveType == "uint96" ||
primitiveType == "uint96[]" ||
primitiveType == "uint128" ||
primitiveType == "uint128[]" ||
primitiveType == "uint256" ||
Expand Down

0 comments on commit 27e6c30

Please sign in to comment.