diff options
author | bojie <bojie@dexon.org> | 2019-02-23 15:35:56 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:57 +0800 |
commit | 94477130cc35bd196b23267b4be130668a13b74c (patch) | |
tree | 190439b10d1c478ebdc1c06201b56a64c7b7ff57 /core | |
parent | 502d5c79819109bbed2adc91ee8b3efdcbd1ddfa (diff) | |
download | go-tangerine-94477130cc35bd196b23267b4be130668a13b74c.tar go-tangerine-94477130cc35bd196b23267b4be130668a13b74c.tar.gz go-tangerine-94477130cc35bd196b23267b4be130668a13b74c.tar.bz2 go-tangerine-94477130cc35bd196b23267b4be130668a13b74c.tar.lz go-tangerine-94477130cc35bd196b23267b4be130668a13b74c.tar.xz go-tangerine-94477130cc35bd196b23267b4be130668a13b74c.tar.zst go-tangerine-94477130cc35bd196b23267b4be130668a13b74c.zip |
fee: fix wrong gas used (#208)
Diffstat (limited to 'core')
-rw-r--r-- | core/state_transition.go | 2 |
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) |