You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we run yarn tsx ./scripts/check/check-deploy.ts, the Checker will detect if expectedConfig.proxyAdmin.address has been set, and compare the expected config with onchain address.
Otherwise, it will read the proxyAdmin.owner from onchain and compare to the top-level expectedConfig.owner or ownerOverrides.proxyAdmin.owner.
In short, infra does not validate expectedConfig.proxyAdmin.owner
// config does not define an expected ProxyAdmin address, this means that checkOwnership will not be able to check the ownership of the ProxyAdmin contract
// as it is not explicitly defined in the config. We therefore check the ownership of the ProxyAdmin contract here.
Consider adding the check into Infra to also validate expectedConfig.proxyAdmin.owner
Nice to have
Since we have many such cases of proxyAdmin in the config (config.proxyAdmin and config.ownerOverrides.proxyAdmin) that are used in the infra or CLI exclusively, figure out how to unify these.
The text was updated successfully, but these errors were encountered:
ltyu
changed the title
fix: infra Checker does not check expectedConfig.proxyAdmin.owner
infra Checker does not check expectedConfig.proxyAdmin.owner
Feb 18, 2025
Problem
Currently, in some of the infra Getters, most notably Renzo's we have a config that specifies the existingProxyAdmins:
hyperlane-monorepo/typescript/infra/config/environments/mainnet3/warp/configGetters/getRenzoPZETHWarpConfig.ts
Lines 23 to 41 in 55db270
When we run
yarn tsx ./scripts/check/check-deploy.ts
, the Checker will detect ifexpectedConfig.proxyAdmin.address
has been set, and compare the expected config with onchain address.Otherwise, it will read the
proxyAdmin.owner
from onchain and compare to the top-levelexpectedConfig.owner
orownerOverrides.proxyAdmin.owner
.In short, infra does not validate
expectedConfig.proxyAdmin.owner
hyperlane-monorepo/typescript/sdk/src/deploy/HyperlaneAppChecker.ts
Lines 116 to 155 in 55db270
Solution
expectedConfig.proxyAdmin.owner
Nice to have
The text was updated successfully, but these errors were encountered: