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.
This commit is contained in:
スパイク 2022-07-04 22:01:07 +09:00 committed by GitHub
parent 5f6e870ee6
commit 55f914a1d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -784,6 +784,8 @@ func isPrimitiveTypeValid(primitiveType string) bool {
primitiveType == "int32[]" || primitiveType == "int32[]" ||
primitiveType == "int64" || primitiveType == "int64" ||
primitiveType == "int64[]" || primitiveType == "int64[]" ||
primitiveType == "int96" ||
primitiveType == "int96[]" ||
primitiveType == "int128" || primitiveType == "int128" ||
primitiveType == "int128[]" || primitiveType == "int128[]" ||
primitiveType == "int256" || primitiveType == "int256" ||
@ -800,6 +802,8 @@ func isPrimitiveTypeValid(primitiveType string) bool {
primitiveType == "uint32[]" || primitiveType == "uint32[]" ||
primitiveType == "uint64" || primitiveType == "uint64" ||
primitiveType == "uint64[]" || primitiveType == "uint64[]" ||
primitiveType == "uint96" ||
primitiveType == "uint96[]" ||
primitiveType == "uint128" || primitiveType == "uint128" ||
primitiveType == "uint128[]" || primitiveType == "uint128[]" ||
primitiveType == "uint256" || primitiveType == "uint256" ||