Skip to content

Commit

Permalink
fix: use primev multisig as l1 gateway owner addr (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz authored Dec 30, 2024
1 parent 48897d2 commit 88127a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions contracts/scripts/standard-bridge/DeployStandardBridge.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {L1Gateway} from "../../contracts/standard-bridge/L1Gateway.sol";
import {Allocator} from "../../contracts/standard-bridge/Allocator.sol";
import {Upgrades} from "openzeppelin-foundry-upgrades/Upgrades.sol";
import {console} from "forge-std/console.sol";
import {MainnetConstants} from "../MainnetConstants.sol";

contract BridgeBase is Script {
// Amount of ETH to initially fund the relayer account on the mev-commit chain.
Expand Down Expand Up @@ -145,7 +146,10 @@ contract DeployL1Gateway is BridgeBase {
}

function _getL1OwnerAddress() internal view returns (address ownerAddr) {
ownerAddr = vm.envAddress("L1_OWNER_ADDRESS");
require(ownerAddr != address(0), L1OwnerAddressNotSet(ownerAddr));
if (block.chainid == 1) {
ownerAddr = MainnetConstants.PRIMEV_TEAM_MULTISIG;
} else {
ownerAddr = msg.sender;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ job "{{ job.name }}" {
echo '{{ .Data.data.bridge_relayer_keystore }}' > local/bridge_relayer_keystore
{{ end }}
{% endraw %}
export L1_OWNER_ADDRESS=${SENDER} #TODO: this should be a multisig address on mainnet.

# --verify flag in entrypoint.sh only works when running forge script from the contracts directory.
# Here we setup the environment variables to function when cd'ing into the contracts directory.
Expand Down

0 comments on commit 88127a6

Please sign in to comment.