Skip to content
Snippets Groups Projects
Unverified Commit ee1b05ed authored by lunfardo314's avatar lunfardo314 Committed by GitHub
Browse files

minor bug fix (#309)

parent 0a4e09aa
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,7 @@ func BLSSignatureFromBytes(data []byte) (result *blsSignature, err error, consum ...@@ -120,6 +120,7 @@ func BLSSignatureFromBytes(data []byte) (result *blsSignature, err error, consum
} }
if data[0] != address.VERSION_BLS { if data[0] != address.VERSION_BLS {
err = fmt.Errorf("wrong version byte, expected %d", address.VERSION_BLS) err = fmt.Errorf("wrong version byte, expected %d", address.VERSION_BLS)
return
} }
result = &blsSignature{} result = &blsSignature{}
copy(result[:BLS_FULL_SIGNATURE_SIZE], data) copy(result[:BLS_FULL_SIGNATURE_SIZE], data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment