Ver Fonte

signer: add bytes32 as valid primitive (#20609)

chabashilah há 5 anos atrás
pai
commit
8694d14e65
1 ficheiros alterados com 3 adições e 1 exclusões
  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" ||