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 running warp apply and subsequently HookModule.update(), the Module attempts to redeploy the hook, despite no changes. This is due to the defaultHook address being compared to the derived version of it.
Additional Context
In updateExistingHook() of EvmERC20WarpModule, the EvmHookModule is initialized with actualConfig.hook
The result will always result in a diff, because as we recall, the expected hook config contains an address (e.g. 0x9e8fFb1c26099e75Dd5D794030e2E9AA51471c25), and thus deploy a new hook.
Solution
Consider adding a short circuit such that if a hook address is supplied, derive it to compare
Alternatively, compare the address to the actual address
Required: Add a unit test in the respective Module test
The text was updated successfully, but these errors were encountered:
Context
Renzo specifies an aggregate of the defaultHook with their ProtocolFeel. The config specifies an address for the default hook.
Problem
When running warp apply and subsequently HookModule.update(), the Module attempts to redeploy the hook, despite no changes. This is due to the defaultHook address being compared to the derived version of it.
Additional Context
In updateExistingHook() of EvmERC20WarpModule, the EvmHookModule is initialized with actualConfig.hook
hyperlane-monorepo/typescript/sdk/src/token/EvmERC20WarpModule.ts
Lines 523 to 527 in f85c8c1
Subsequently hookModule.update() is called with expectedConfig.hook, which get compared with a derived actual hookConfig (via this.read())
hyperlane-monorepo/typescript/sdk/src/hook/EvmHookModule.ts
Lines 153 to 167 in f85c8c1
The result will always result in a diff, because as we recall, the expected hook config contains an address (e.g.
0x9e8fFb1c26099e75Dd5D794030e2E9AA51471c25
), and thus deploy a new hook.Solution
The text was updated successfully, but these errors were encountered: