Skip to content

Commit

Permalink
fix: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikRevich committed Aug 16, 2024
1 parent 145f70d commit 26999fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobilesdk/zcn/smartcontract.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func Faucet(methodName, jsonInput string, zcnToken float64) (string, error) {
func ExecuteSmartContract(address, methodName, input string, sasToken string) (string, error) {
wg := &sync.WaitGroup{}
cb := &transactionCallback{wg: wg}
txn, err := zcncore.NewTransaction(cb, "0", 0)
txn, err := zcncore.NewTransaction(cb, 0, 0)
if err != nil {
return "", err
}
Expand All @@ -29,7 +29,7 @@ func ExecuteSmartContract(address, methodName, input string, sasToken string) (s

v, err := strconv.ParseUint(sasToken, 10, 64)
if err != nil {
return 0, fmt.Errorf("invalid token value: %v, err: %v", sasToken, err)
return "", fmt.Errorf("invalid token value: %v, err: %v", sasToken, err)
}

_, err = txn.ExecuteSmartContract(address, methodName, input, v)
Expand Down

0 comments on commit 26999fd

Please sign in to comment.