uint256: add Reverse(), change String() to be BE
This one makes a little more obvious that we're operating with LE representations mostly. Refs. #307. See #314 also.
This commit is contained in:
parent
c1b1b6fca4
commit
d5d570f793
16 changed files with 48 additions and 164 deletions
|
@ -185,7 +185,7 @@ func getTestBlockchain(t *testing.T) *Blockchain {
|
|||
func getTestTransaction(txID string, t *testing.T) *transaction.Transaction {
|
||||
chain := getTestBlockchain(t)
|
||||
|
||||
txHash, err := util.Uint256DecodeString(txID)
|
||||
txHash, err := util.Uint256DecodeReverseString(txID)
|
||||
require.NoErrorf(t, err, "could not decode string %s to Uint256", txID)
|
||||
|
||||
tx, _, err := chain.GetTransaction(txHash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue