Add event for contract upgrades

This commit is contained in:
derpy-duck 2023-06-07 22:22:29 +00:00
parent a9f7bdf461
commit deec3e02fb
1 changed files with 6 additions and 0 deletions

View File

@ -93,7 +93,11 @@ abstract contract WormholeRelayerGovernance is WormholeRelayerBase, ERC1967Upgra
foreignAddress;
}
event ContractUpgraded(address indexed oldContract, address indexed newContract);
function submitContractUpgrade(bytes memory encodedVm) external {
address currentImplementation = _getImplementation();
address newImplementation = parseAndCheckContractUpgradeVm(encodedVm);
_upgradeTo(newImplementation);
@ -104,6 +108,8 @@ abstract contract WormholeRelayerGovernance is WormholeRelayerBase, ERC1967Upgra
if (!success) {
revert ContractUpgradeFailed(revertData);
}
emit ContractUpgraded(currentImplementation, newImplementation);
}
function setDefaultDeliveryProvider(bytes memory encodedVm) external {