Skip to content

Commit

Permalink
ethereum: Set impl initialised during setup (fixes #1930)
Browse files Browse the repository at this point in the history
  • Loading branch information
Csongor Kiss authored and kcsongor committed Nov 23, 2022
1 parent 395bb0f commit 648b361
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ethereum/contracts/Setup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ contract Setup is Setters, ERC1967Upgrade {
setEvmChainId(evmChainId);

_upgradeTo(implementation);

// See https://github.com/wormhole-foundation/wormhole/issues/1930 for
// why we set this here
setInitialized(implementation);
}
}
4 changes: 4 additions & 0 deletions ethereum/contracts/bridge/BridgeSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@ contract BridgeSetup is BridgeSetters, ERC1967Upgrade {
setEvmChainId(evmChainId);

_upgradeTo(implementation);

// See https://github.com/wormhole-foundation/wormhole/issues/1930 for
// why we set this here
setInitialized(implementation);
}
}
4 changes: 4 additions & 0 deletions ethereum/contracts/nft/NFTBridgeSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ contract NFTBridgeSetup is NFTBridgeSetters, ERC1967Upgrade {
setEvmChainId(evmChainId);

_upgradeTo(implementation);

// See https://github.com/wormhole-foundation/wormhole/issues/1930 for
// why we set this here
setInitialized(implementation);
}
}

0 comments on commit 648b361

Please sign in to comment.