Skip to content

Commit

Permalink
update new version height (#1420)
Browse files Browse the repository at this point in the history
  • Loading branch information
laizy authored Dec 14, 2022
1 parent ac6044f commit 7f7b1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smartcontract/service/evm/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (st *StateTransition) buyGas() (adjustedGas bool) {
if have, want := st.state.GetBalance(st.msg.From()), mgval; have.Cmp(want) < 0 {
mgval = have
gas = big.NewInt(0).Div(have, st.gasPrice).Uint64()
if st.evm.ChainConfig().ChainID.Uint64() != constants.EIP155_CHAINID_MAINNET || st.evm.Context.BlockNumber.Uint64() >= 15350000 {
if st.evm.ChainConfig().ChainID.Uint64() != constants.EIP155_CHAINID_MAINNET || st.evm.Context.BlockNumber.Uint64() >= 15380000 {
mgval = big.NewInt(0).Mul(big.NewInt(0).SetUint64(gas), st.gasPrice)
}
adjustedGas = true
Expand Down

0 comments on commit 7f7b1c5

Please sign in to comment.