Skip to content

Commit

Permalink
Merge pull request #34 from coming-chat/bugfix/decode_bcs_panic
Browse files Browse the repository at this point in the history
Fx decode bcs panic
  • Loading branch information
Gkirito authored May 28, 2024
2 parents 5501167 + ca0ea13 commit 5eea4e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.18
require (
github.com/btcsuite/btcutil v1.0.2
github.com/coming-chat/go-aptos v0.0.0-20221013022715-39f91035c785
github.com/fardream/go-bcs v0.2.1
github.com/fardream/go-bcs v0.4.0
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/shopspring/decimal v1.3.1
github.com/stretchr/testify v1.8.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fardream/go-bcs v0.2.1 h1:ffW/0Jr0b2WXLNPF8AX6wWI9ETVE4+aXkv2aIXVViwE=
github.com/fardream/go-bcs v0.2.1/go.mod h1:UsoxhIoe2GsVexX0s5NDLIChxeb/JUbjw7IWzzgF3Xk=
github.com/fardream/go-bcs v0.4.0 h1:J2yQZRAnkg/yMgP9MPf/qj9jJfD6w/LCMdWtC9Cbn08=
github.com/fardream/go-bcs v0.4.0/go.mod h1:UsoxhIoe2GsVexX0s5NDLIChxeb/JUbjw7IWzzgF3Xk=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
Expand Down
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 5eea4e9

Please sign in to comment.