aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2019-02-23 15:35:56 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:22 +0800
commit3c29f8b33e108c2cd4f1b8d269742d2e5adce669 (patch)
tree5fc4299cd9902e76917c7c96e17df8315416dc4a /core
parentd853316a6335cd7b7bf95cb045905239ad76ad2c (diff)
downloadgo-tangerine-3c29f8b33e108c2cd4f1b8d269742d2e5adce669.tar.gz
go-tangerine-3c29f8b33e108c2cd4f1b8d269742d2e5adce669.tar.zst
go-tangerine-3c29f8b33e108c2cd4f1b8d269742d2e5adce669.zip
fee: fix wrong gas used (#208)
Diffstat (limited to 'core')
-rw-r--r--core/state_transition.go2
1 files changed, 2 insertions, 0 deletions
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)