Skip to content

Commit

Permalink
Resolve all conflicts under accounts/
Browse files Browse the repository at this point in the history
  • Loading branch information
mininny committed Aug 10, 2024
1 parent 8860666 commit adf9119
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
33 changes: 2 additions & 31 deletions accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,6 @@ import (
state2 "github.com/erigontech/erigon-lib/state"
types2 "github.com/erigontech/erigon-lib/types"

<<<<<<< HEAD
ethereum "github.com/ledgerwatch/erigon"
"github.com/ledgerwatch/erigon-lib/opstack"
"github.com/ledgerwatch/erigon/accounts/abi"
"github.com/ledgerwatch/erigon/accounts/abi/bind"
"github.com/ledgerwatch/erigon/common/math"
"github.com/ledgerwatch/erigon/common/u256"
"github.com/ledgerwatch/erigon/consensus"
"github.com/ledgerwatch/erigon/consensus/ethash"
"github.com/ledgerwatch/erigon/consensus/misc"
"github.com/ledgerwatch/erigon/core"
"github.com/ledgerwatch/erigon/core/rawdb"
"github.com/ledgerwatch/erigon/core/state"
"github.com/ledgerwatch/erigon/core/types"
"github.com/ledgerwatch/erigon/core/vm"
"github.com/ledgerwatch/erigon/event"
"github.com/ledgerwatch/erigon/params"
"github.com/ledgerwatch/erigon/turbo/services"
"github.com/ledgerwatch/erigon/turbo/stages/mock"
=======
ethereum "github.com/erigontech/erigon"
"github.com/erigontech/erigon/accounts/abi"
"github.com/erigontech/erigon/accounts/abi/bind"
Expand All @@ -77,7 +57,6 @@ import (
"github.com/erigontech/erigon/params"
"github.com/erigontech/erigon/turbo/services"
"github.com/erigontech/erigon/turbo/stages/mock"
>>>>>>> v3.0.0-alpha1
)

// This nil assignment ensures at compile time that SimulatedBackend implements bind.ContractBackend.
Expand Down Expand Up @@ -748,12 +727,8 @@ func (b *SimulatedBackend) callContract(_ context.Context, call ethereum.CallMsg

txContext := core.NewEVMTxContext(msg)
header := block.Header()
<<<<<<< HEAD
evmContext := core.NewEVMBlockContext(header, core.GetHashFn(header, b.getHeader), b.m.Engine, nil)
evmContext.L1CostFunc = opstack.NewL1CostFunc(b.m.ChainConfig, statedb)
=======
evmContext := core.NewEVMBlockContext(header, core.GetHashFn(header, b.getHeader), b.m.Engine, nil, b.m.ChainConfig)
>>>>>>> v3.0.0-alpha1
evmContext.L1CostFunc = opstack.NewL1CostFunc(b.m.ChainConfig, statedb)
// Create a new environment which holds all relevant information
// about the transaction and calling mechanisms.
vmEnv := vm.NewEVM(evmContext, txContext, statedb, b.m.ChainConfig, vm.Config{})
Expand Down Expand Up @@ -867,17 +842,13 @@ func (m callMsg) Gas() uint64 { return m.CallMsg.Gas }
func (m callMsg) Value() *uint256.Int { return m.CallMsg.Value }
func (m callMsg) Data() []byte { return m.CallMsg.Data }
func (m callMsg) AccessList() types2.AccessList { return m.CallMsg.AccessList }
<<<<<<< HEAD
func (m callMsg) IsFree() bool { return false }
func (m callMsg) Authorizations() []types.Authorization { return m.CallMsg.Authorizations }
func (m callMsg) IsFake() bool { return true }
func (m callMsg) Mint() *uint256.Int { return nil }
func (m callMsg) RollupCostData() types2.RollupCostData { return types2.RollupCostData{} }
func (m callMsg) IsDepositTx() bool { return false }
func (m callMsg) IsSystemTx() bool { return false }
=======
func (m callMsg) Authorizations() []types.Authorization { return m.CallMsg.Authorizations }
func (m callMsg) IsFree() bool { return false }
>>>>>>> v3.0.0-alpha1

func (m callMsg) BlobGas() uint64 { return misc.GetBlobGasUsed(len(m.CallMsg.BlobHashes)) }
func (m callMsg) MaxFeePerBlobGas() *uint256.Int { return m.CallMsg.MaxFeePerBlobGas }
Expand Down
9 changes: 0 additions & 9 deletions accounts/abi/bind/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,12 @@ import (
"fmt"
"reflect"
<<<<<<< HEAD
ethereum "github.com/ledgerwatch/erigon"
"github.com/ledgerwatch/erigon/accounts/abi"
"github.com/ledgerwatch/erigon/accounts/abi/bind"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/core/types"
"github.com/ledgerwatch/erigon/event"
=======
ethereum "github.com/erigontech/erigon"
"github.com/erigontech/erigon/accounts/abi"
"github.com/erigontech/erigon/accounts/abi/bind"
libcommon "github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon/core/types"
"github.com/erigontech/erigon/event"
>>>>>>> v3.0.0-alpha1
)
// Reference imports to suppress errors if they are not otherwise used.
Expand Down
2 changes: 0 additions & 2 deletions merge_status.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2291,8 +2291,6 @@ Unmerged paths:
both modified: Dockerfile
both modified: Dockerfile.debian
both modified: Makefile
both modified: accounts/abi/bind/backends/simulated.go
both modified: accounts/abi/bind/template.go
both modified: diagnostics/setup.go
deleted by them: erigon-lib/.github/workflows/ci.yml
both modified: erigon-lib/chain/chain_config.go
Expand Down

0 comments on commit adf9119

Please sign in to comment.