Skip to content

Commit dc08dd3

Browse files
committed
Fix async_await_test.
1 parent 9ec65c5 commit dc08dd3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nil/internal/execution/state.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,11 @@ func (es *ExecutionState) SendResponseTransaction(txn *types.Transaction, res *E
10521052
Data: data,
10531053
}
10541054

1055+
// Send back value in case of failed transaction, so that we don't need a separate bounce transaction
1056+
if res.Failed() {
1057+
responsePayload.Value = txn.Value
1058+
}
1059+
10551060
requestChain := txn.RequestChain
10561061
if txn.IsRequest() {
10571062
responsePayload.To = txn.From

0 commit comments

Comments
 (0)