Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i unmarshal TransactionData from txBytes ? #33

Open
beykery opened this issue May 28, 2024 · 1 comment
Open

how can i unmarshal TransactionData from txBytes ? #33

beykery opened this issue May 28, 2024 · 1 comment

Comments

@beykery
Copy link

beykery commented May 28, 2024

the test case : programmable_transaction_builder_test.go --> TestTransferSui
when ' txByte, err := bcs.Marshal(tx) ' , how can i unmarshal to TransactionData from txByte ?

@Gkirito
Copy link
Contributor

Gkirito commented May 28, 2024

Fixed by #34

Please try the newest version

go get github.com/coming-chat/go-sui/v2@main

And use this code

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants