Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhxymh committed Jan 6, 2021
1 parent fae820d commit 95b7c28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ func TestGetTransactionResults(t *testing.T) {

func TestGetMerklePathByTransactionID(t *testing.T) {
var isTransactions = true
height, err := aelf.GetBlockHeight()
block, err := aelf.GetBlockByHeight(height, isTransactions)
block, err := aelf.GetBlockByHeight(1, isTransactions)
assert.NoError(t, err)
transactionID := block.Body.Transactions[0]
merklePath, err := aelf.GetMerklePathByTransactionID(transactionID)
assert.NoError(t, err)
assert.NotEmpty(t, merklePath)
assert.True(t, len(merklePath.MerklePathNodes) == 4)
//spew.Dump("Get Merkle Path By TransactionID Result", merklePath)
}

Expand Down

0 comments on commit 95b7c28

Please sign in to comment.