Skip to content

Commit

Permalink
evm: sets optimism WETH in token bridge initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
scnale authored and evan-gray committed Jan 30, 2024
1 parent e9431ab commit 4138526
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ethereum/contracts/bridge/BridgeImplementation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ contract BridgeImplementation is Bridge {

function initialize() initializer public virtual {
// this function needs to be exposed for an upgrade to pass
if (evmChainId() == 10) { // optimism
address weth = 0x4200000000000000000000000000000000000006;
setWETH(weth);
}
}

modifier initializer() {
Expand Down

0 comments on commit 4138526

Please sign in to comment.