signer: add bytes32 as valid primitive (#20609)

This commit is contained in:
chabashilah 2020-02-11 18:52:51 +09:00 committed by GitHub
parent 172f7778fe
commit 8694d14e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -923,7 +923,9 @@ func isPrimitiveTypeValid(primitiveType string) bool {
primitiveType == "bytes30" || primitiveType == "bytes30" ||
primitiveType == "bytes30[]" || primitiveType == "bytes30[]" ||
primitiveType == "bytes31" || primitiveType == "bytes31" ||
primitiveType == "bytes31[]" { primitiveType == "bytes31[]" ||
primitiveType == "bytes32" ||
primitiveType == "bytes32[]" {
return true return true
} }
if primitiveType == "int" || if primitiveType == "int" ||