fix: governor mod token validation #242
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug Report
https://discord.com/channels/881881751369175040/1032974561735606322/1268312094386950286
Implementation
In the
packages/app/src/views/AddModule/wizards/OzGovernor/service/tokenValidation.ts
file, the following changes were made to fix the bug:tokenContract.delegates(RANDOM_VALID_ADDRESS)
withtokenContract.delegates.staticCall(RANDOM_VALID_ADDRESS)
.These changes ensure the application correctly identifies and calls the
delegateBySig
function on the contract, addressing the issues caused by the proxy contract used by the Arbitrum Foundation.Additional Context
The error reported was:
This error occurred while testing with the Arbitrum Foundation's address
0x912CE59144191C1204E64559FE8253a0e49E6548
. The application was not seeing thedelegateBySig()
function on the contract, likely due to the proxy contract being used.Commit Changes
This change ensures that the function calls are correctly handled and improves compatibility with contracts deployed on all networks, specifically addressing the issues with proxy contracts.