Skip to content

Commit

Permalink
Fix metadata hash length error message. (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
winder authored and EvanJRichard committed Dec 12, 2019
1 parent cf32d02 commit c314772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func MakeAssetCreateTxn(account string, feePerByte, firstRound, lastRound uint64
tx.AssetParams.UnitName = unitName

if len(metadataHash) > types.AssetMetadataHashLen {
return tx, fmt.Errorf("asset metadata hash %s too long (max %d bytes)", metadataHash, len(tx.AssetParams.MetadataHash))
return tx, fmt.Errorf("asset metadata hash '%s' too long: %d > %d)", metadataHash, len(metadataHash), types.AssetMetadataHashLen)
}
copy(tx.AssetParams.MetadataHash[:], []byte(metadataHash))

Expand Down

0 comments on commit c314772

Please sign in to comment.