Skip to content

Commit

Permalink
remove unused getEIP1967ImplementationAddress func
Browse files Browse the repository at this point in the history
  • Loading branch information
maurelian committed Oct 29, 2024
1 parent 62d765f commit ce7923b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions op-deployer/pkg/deployer/integration_test/apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ import (
"github.com/holiman/uint256"

"github.com/ethereum-optimism/optimism/op-chain-ops/devkeys"
"github.com/ethereum-optimism/optimism/op-chain-ops/genesis"
opcrypto "github.com/ethereum-optimism/optimism/op-service/crypto"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum-optimism/optimism/op-service/testutils/kurtosisutil"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -375,13 +373,6 @@ func validateOPChainDeployment(t *testing.T, cg codeGetter, st *state.State, int
}
}

func getEIP1967ImplementationAddress(t *testing.T, allocations types.GenesisAlloc, proxyAddress common.Address) common.Address {
storage := allocations[proxyAddress].Storage
storageValue := storage[genesis.ImplementationSlot]
require.NotEmpty(t, storageValue, "Implementation address for %s should be set", proxyAddress)
return common.HexToAddress(storageValue.Hex())
}

type bytesMarshaler interface {
Bytes() []byte
}
Expand Down

0 comments on commit ce7923b

Please sign in to comment.