diff --git a/go.mod b/go.mod index bb63bfc6..2256da43 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22.3 require ( github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef - github.com/ethereum-optimism/optimism v1.9.4-0.20241016180232-3f65402acca0 + github.com/ethereum-optimism/optimism v1.9.4-0.20241017231226-27c12a132d32 github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20241002103526-9083af857790 github.com/ethereum/go-ethereum v1.14.11 github.com/joho/godotenv v1.5.1 diff --git a/go.sum b/go.sum index dda95601..ecbc399c 100644 --- a/go.sum +++ b/go.sum @@ -99,6 +99,8 @@ github.com/ethereum-optimism/op-geth v1.101411.0-rc.1 h1:xRheNbOM+Js9a+dqVt5LmBq github.com/ethereum-optimism/op-geth v1.101411.0-rc.1/go.mod h1:7S4pp8KHBmEmKkRjL1BPOc6jY9hW+64YeMUjR3RVLw4= github.com/ethereum-optimism/optimism v1.9.4-0.20241016180232-3f65402acca0 h1:Yof8WmPC4iC0gH0BeTYxu3GVc0SXXHWXXpDevbR6/Ts= github.com/ethereum-optimism/optimism v1.9.4-0.20241016180232-3f65402acca0/go.mod h1:Xghe72cmK8ehQipbTp2TZSaiaKNIFKz2LWxKccAu5bg= +github.com/ethereum-optimism/optimism v1.9.4-0.20241017231226-27c12a132d32 h1:0aL9mA2eP6HTUtGkATxJ+I4cELWp2uG1hALwRPAWvqg= +github.com/ethereum-optimism/optimism v1.9.4-0.20241017231226-27c12a132d32/go.mod h1:Xghe72cmK8ehQipbTp2TZSaiaKNIFKz2LWxKccAu5bg= github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20241002103526-9083af857790 h1:yZlEBCdD0izqzTvmhET1roNSzMfXL50DhL+dALYlnXk= github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20241002103526-9083af857790/go.mod h1:XaVXL9jg8BcyOeugECgIUGa9Y3DjYJj71RHmb5qon6M= github.com/ethereum/c-kzg-4844 v1.0.0 h1:0X1LBXxaEtYD9xsyj9B9ctQEZIpnvVDeoBx8aHEwTNA= diff --git a/interop/applier.go b/interop/applier.go index 80b027a6..fe4a571d 100644 --- a/interop/applier.go +++ b/interop/applier.go @@ -30,6 +30,7 @@ var interopPredeploys = []common.Address{ predeploys.L1BlockAddr, predeploys.SuperchainWETHAddr, predeploys.ETHLiquidityAddr, + predeploys.SuperchainTokenBridgeAddr, } type predeploy struct { diff --git a/opsimulator/opsimulator.go b/opsimulator/opsimulator.go index c0db7ad5..386dcc47 100644 --- a/opsimulator/opsimulator.go +++ b/opsimulator/opsimulator.go @@ -35,7 +35,6 @@ import ( const ( host = "127.0.0.1" l2NativeSuperchainERC20Addr = "0x420beeF000000000000000000000000000000001" - superchainTokenBridgeAddr = "0x4200000000000000000000000000000000000028" ) type OpSimulator struct { @@ -203,7 +202,7 @@ func (opSim *OpSimulator) startBackgroundTasks() { // Log SuperchainTokenBridge events opSim.bgTasks.Go(func() error { - superchainTokenBridge, err := bindings.NewSuperchainTokenBridge(common.HexToAddress(superchainTokenBridgeAddr), opSim.Chain.EthClient()) + superchainTokenBridge, err := bindings.NewSuperchainTokenBridge(predeploys.SuperchainTokenBridgeAddr, opSim.Chain.EthClient()) if err != nil { return fmt.Errorf("failed to create SuperchainTokenBridge contract: %w", err) }