Skip to content

Commit

Permalink
test(sui_types): add bcs decode test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkirito committed May 28, 2024
1 parent d6275f1 commit ca0ea13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sui_types/programmable_transaction_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@ func TestTransferSui(t *testing.T) {
)
txByte, err := bcs.Marshal(tx)
require.NoError(t, err)

var reTx = TransactionData{}
_, err = bcs.Unmarshal(txByte, &reTx)
require.NoError(t, err)

t.Logf("%x", txByte)
}

0 comments on commit ca0ea13

Please sign in to comment.