From 5259c187c4709519b550fca9e27d817620ce41ed Mon Sep 17 00:00:00 2001 From: yash10019coder Date: Wed, 4 Sep 2024 01:00:17 +0530 Subject: [PATCH] fix error output while executing a sc. --- zboxcore/sdk/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zboxcore/sdk/transaction.go b/zboxcore/sdk/transaction.go index ef8586fe6..aba11e63e 100644 --- a/zboxcore/sdk/transaction.go +++ b/zboxcore/sdk/transaction.go @@ -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 }