Skip to content

Commit

Permalink
Fix send token
Browse files Browse the repository at this point in the history
  • Loading branch information
peterlimg committed Feb 14, 2024
1 parent 9d83189 commit 0736880
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zcncore/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,11 @@ func (t *Transaction) Verify() error {
txStatus := tt.Status
switch txStatus {
case 1:
t.completeVerifyWithConStatus(StatusSuccess, int(Success), tt.TransactionOutput, nil)
if t.txn.TransactionType == transaction.TxnTypeSend {
t.completeVerifyWithConStatus(StatusSuccess, int(Success), string(output), nil)
} else {
t.completeVerifyWithConStatus(StatusSuccess, int(Success), tt.TransactionOutput, nil)
}
case 2:
t.completeVerifyWithConStatus(StatusSuccess, int(ChargeableError), tt.TransactionOutput, nil)
default:
Expand Down

0 comments on commit 0736880

Please sign in to comment.