Browse Source

signer: add bytes32 as valid primitive (#20609)

chabashilah 5 years ago
parent
commit
8694d14e65
1 changed files with 3 additions and 1 deletions
  1. 3 1
      signer/core/signed_data.go

+ 3 - 1
signer/core/signed_data.go

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