ethereum: Set impl initialised during setup (fixes #1930)

This commit is contained in:
Csongor Kiss 2022-11-18 14:03:46 +00:00 committed by Csongor Kiss
parent 395bb0f73c
commit 648b361623
3 changed files with 12 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}