From 55f914a1d764dac4bd37a48173092b1f5c3b186d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B9=E3=83=91=E3=82=A4=E3=82=AF?= <1311798+spkjp@users.noreply.github.com> Date: Mon, 4 Jul 2022 22:01:07 +0900 Subject: [PATCH] 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. --- signer/core/apitypes/types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/signer/core/apitypes/types.go b/signer/core/apitypes/types.go index 7a5c7b8937..49819fee33 100644 --- a/signer/core/apitypes/types.go +++ b/signer/core/apitypes/types.go @@ -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" || @@ -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" ||