Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
profMagija committed Aug 20, 2024
1 parent 3c55f2c commit 9473d04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions execution/nodeInterface/NodeInterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
Expand Down Expand Up @@ -516,7 +515,7 @@ func (n NodeInterface) GasEstimateL1Component(
args.Gas = (*hexutil.Uint64)(&randomGas)

// We set the run mode to eth_call mode here because we want an exact estimate, not a padded estimate
msg, err := args.ToMessage(randomGas, n.header, evm.StateDB.(*state.StateDB), core.MessageEthcallMode)
msg, err := args.ToMessage(randomGas, n.header, evm.StateDB, core.MessageEthcallMode)
if err != nil {
return 0, nil, nil, err
}
Expand Down Expand Up @@ -572,7 +571,7 @@ func (n NodeInterface) GasEstimateComponents(
// Setting the gas currently doesn't affect the PosterDataCost,
// but we do it anyways for accuracy with potential future changes.
args.Gas = &totalRaw
msg, err := args.ToMessage(gasCap, n.header, evm.StateDB.(*state.StateDB), core.MessageGasEstimationMode)
msg, err := args.ToMessage(gasCap, n.header, evm.StateDB, core.MessageGasEstimationMode)
if err != nil {
return 0, 0, nil, nil, err
}
Expand Down
3 changes: 1 addition & 2 deletions precompiles/precompile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"os"
"testing"

"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/log"

"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -86,7 +85,7 @@ func TestEvents(t *testing.T) {
}

//nolint:errcheck
logs := evm.StateDB.(*state.StateDB).Logs()
logs := evm.StateDB.Logs()
for _, log := range logs {
if log.Address != debugContractAddr {
Fail(t, "address mismatch:", log.Address, "vs", debugContractAddr)
Expand Down

0 comments on commit 9473d04

Please sign in to comment.