Skip to content

Commit 55f914a

Browse files
authored
signer/core/apitypes: support primitive types int96/uint96 (#25105)
I have a EIP712 typehash using uint96, but it's currently not supported by go-ethereum. This change fixes it.
1 parent 5f6e870 commit 55f914a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

signer/core/apitypes/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,8 @@ func isPrimitiveTypeValid(primitiveType string) bool {
784784
primitiveType == "int32[]" ||
785785
primitiveType == "int64" ||
786786
primitiveType == "int64[]" ||
787+
primitiveType == "int96" ||
788+
primitiveType == "int96[]" ||
787789
primitiveType == "int128" ||
788790
primitiveType == "int128[]" ||
789791
primitiveType == "int256" ||
@@ -800,6 +802,8 @@ func isPrimitiveTypeValid(primitiveType string) bool {
800802
primitiveType == "uint32[]" ||
801803
primitiveType == "uint64" ||
802804
primitiveType == "uint64[]" ||
805+
primitiveType == "uint96" ||
806+
primitiveType == "uint96[]" ||
803807
primitiveType == "uint128" ||
804808
primitiveType == "uint128[]" ||
805809
primitiveType == "uint256" ||

0 commit comments

Comments
 (0)