Skip to content

Commit

Permalink
fix error output while executing a sc.
Browse files Browse the repository at this point in the history
  • Loading branch information
yash10019coder committed Sep 3, 2024
1 parent d13db55 commit 5259c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zboxcore/sdk/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func ExecuteSmartContract(address string, sn transaction.SmartContractTxnData, v

switch txn.GetVerifyConfirmationStatus() {
case zcncore.ChargeableError:
return t, fmt.Errorf("smartcontract: %s", txn.GetVerifyOutput())
return t, errors.New(txn.GetVerifyOutput())
case zcncore.Success:
return t, nil
}
Expand Down

0 comments on commit 5259c18

Please sign in to comment.