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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add desc for transaction data #1263

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions wasmsdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func makeSCRestAPICall(scAddress, relativePath, paramsJson string) (string, erro
return string(b), err
}

func send(to_client_id string, tokens uint64, fee uint64) (string, error) {
func send(toClientID string, tokens uint64, fee uint64, desc string) (string, error) {
wg := &sync.WaitGroup{}
cb := &transactionCallback{wg: wg}
txn, err := zcncore.NewTransaction(cb, fee, 0)
Expand All @@ -133,7 +133,7 @@ func send(to_client_id string, tokens uint64, fee uint64) (string, error) {
}

wg.Add(1)
err = txn.Send(to_client_id, tokens, "")
err = txn.Send(toClientID, tokens, desc)
if err == nil {
wg.Wait()
} else {
Expand Down