From 94477130cc35bd196b23267b4be130668a13b74c Mon Sep 17 00:00:00 2001 From: bojie Date: Sat, 23 Feb 2019 15:35:56 +0800 Subject: fee: fix wrong gas used (#208) --- core/state_transition.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/state_transition.go b/core/state_transition.go index ce05e54a2..02d58575b 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -242,6 +242,8 @@ func (st *StateTransition) dexonRefundGas() { refund = st.state.GetRefund() } + st.gas = refund + // Return ETH for remaining gas, exchanged at the original rate. remaining := new(big.Int).Mul(new(big.Int).SetUint64(refund), st.gasPrice) st.state.AddBalance(st.msg.From(), remaining) -- cgit v1.2.3