Skip to content

Commit

Permalink
happy lint, happy life
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden committed Oct 5, 2024
1 parent 552da3d commit 42b0e91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,10 @@ func (g *Genesis) toBlockWithRoot(root common.Hash) *types.Block {
head.BlobGasUsed = new(uint64)
}
}
if conf.IsPrague(num, g.Timestamp) {
//head.RequestsHash = &types.EmptyRequestsHash
//requests = make(types.Requests, 0)
}
//if conf.IsPrague(num, g.Timestamp) {
//head.RequestsHash = &types.EmptyRequestsHash
//requests = make(types.Requests, 0)
//}
}
return types.NewBlock(head, &types.Body{Withdrawals: withdrawals, Requests: requests}, nil, trie.NewStackTrie(nil))
}
Expand Down
4 changes: 2 additions & 2 deletions core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil {
evm.Config.Tracer.OnGasChange(gas, gas-statelessGas, tracing.GasChangeWitnessContractCollisionCheck)
}
gas = gas - statelessGas
contract.Gas = contract.Gas - statelessGas
}

// We add this to the access list _before_ taking a snapshot. Even if the
Expand Down Expand Up @@ -540,7 +540,7 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil {
evm.Config.Tracer.OnGasChange(gas, gas-statelessGas, tracing.GasChangeWitnessContractInit)
}
gas = gas - statelessGas
contract.Gas = contract.Gas - statelessGas
}
evm.Context.Transfer(evm.StateDB, caller.Address(), address, value)

Expand Down

0 comments on commit 42b0e91

Please sign in to comment.