Skip to content

Commit b4ff63e

Browse files
authored
Merge pull request #242 from gnosisguild/governor_token_validation
fix: governor mod token validation
2 parents 802c296 + 376e105 commit b4ff63e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zodiac-app",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"private": true,
55
"homepage": "./",
66
"type": "module",

packages/app/src/views/AddModule/wizards/OzGovernor/service/tokenValidation.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ export const isVotesCompilable = (provider: BrowserProvider) => async (tokenAddr
2020
tokenContract.getVotes(RANDOM_VALID_ADDRESS),
2121
tokenContract.getPastVotes(RANDOM_VALID_ADDRESS, RANDOM_BLOCK_NUMBER),
2222
tokenContract.getPastTotalSupply(RANDOM_BLOCK_NUMBER),
23-
tokenContract.delegates(RANDOM_VALID_ADDRESS),
23+
tokenContract.delegates.staticCall(RANDOM_VALID_ADDRESS),
2424
])
25-
// @ts-ignore
26-
tokenContract.functions['delegateBySig'].name
25+
tokenContract.delegateBySig.name
2726
} catch (e) {
2827
console.log(e)
2928
return false

0 commit comments

Comments
 (0)