Skip to content

Commit

Permalink
fix: delegates raw call
Browse files Browse the repository at this point in the history
  • Loading branch information
ethzoomer authored Jul 23, 2024
1 parent 849017e commit 3b54e1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/GovNftSugar.vy
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def _raw_call_delegates(_token: address, _account: address) -> address:
@param _token The token to call
@param _account The account to check the delegation of
"""
if self._raw_call(_token, concat(method_id("delegates()"), convert(_account, bytes32))):
if self._raw_call(_token, concat(method_id("delegates(address)"), convert(_account, bytes32))):
return IToken(_token).delegates(_account)
return empty(address)

Expand Down
2 changes: 1 addition & 1 deletion env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
GOVNFT_SUGAR_ADDRESS=0xB3e2C137A3a6f680A0D1f78DaA563689A61d7f80
GOVNFT_SUGAR_ADDRESS=0xbEDAbeDf82d4BEFc73742E46352B0af5a5bd3460
GOVNFT_FACTORY_ADDRESS=0xefB034F630F7cfA595C3858EaE6b67eF8fdD8e30
GOVNFT_COLLECTION_ADDRESS=0xF1dEc90e69D1178Fc3D8007F0C3382330aa1ADD7
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Below is the list of data we support.

### GovNFT Data

`GovNFTSugar.vy` is deployed at `0xB3e2C137A3a6f680A0D1f78DaA563689A61d7f80`
`GovNFTSugar.vy` is deployed at `0xbEDAbeDf82d4BEFc73742E46352B0af5a5bd3460`

It allows fetching GovNFT data.
The returned data/struct of type `GovNft` values represent:
Expand Down

0 comments on commit 3b54e1d

Please sign in to comment.