Skip to content

Commit 717557b

Browse files
committed
add gas to terminate calltrace call
1 parent f6dd782 commit 717557b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substrate/frame/revive/src/exec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1749,7 +1749,7 @@ where
17491749
t.terminate(
17501750
contract_address,
17511751
T::AddressMapper::to_address(&args.beneficiary),
1752-
0, // gas is tracked separately; termination happens at end of call stack
1752+
transaction_meter.eth_gas_left().unwrap_or_default().saturated_into::<u64>(),
17531753
balance,
17541754
);
17551755
});

0 commit comments

Comments
 (0)