Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event with signature 'WethSet(indexed address)' not present in ABI 'AaveOracle'. #40

Closed
chulavege1 opened this issue Nov 21, 2021 · 3 comments

Comments

@chulavege1
Copy link

Hi, i try to run command
# run codegen npm run subgraph:codegen
And then give me error.

Failed to load subgraph from subgraph.yaml: Error in subgraph.yaml:
Path: dataSources > 0 > eventHandlers > 2
Event with signature 'WethSet(indexed address)' not present in ABI 'AaveOracle'.
Available events:

  • AssetSourceUpdated(indexed address,indexed address)
  • BaseCurrencySet(indexed address,uint256)
  • FallbackOracleUpdated(indexed address)
  • OwnershipTransferred(indexed address,indexed address)

if i delete lines (41-42) in the file subgraph.yaml
event: WethSet(indexed address)
handler: handleWethSet

Then the command works without errors
However, if further I try to enter -
npm run deploy:self-hosted:kovan || npm run deploy:self-hosted:mainnet
or npm run deploy:hosted:kovan || npm run deploy:hosted:mainnet

But when you call this command, a new file is generated this bug strings
Any idea how can i fix that ?
...
OS Fedora 35

@zhou533
Copy link

zhou533 commented Dec 8, 2021

it seems like the contract was updated and 'WethSet' isn't available anymore. aave/protocol-v2@0e7bc49#diff-3eb91bbed0969b7a39be2c39095e2ed0edf70f570f9170e779b5ecfbd5ea5430

@Shelvak
Copy link

Shelvak commented Dec 22, 2021

For anybody that hits this issue, you could reset history in the v2 submodule:

cd externals/protocol-v2
git reset --hard d460ab4e # the commit before the WethSet change
cd ../../
yarn submodule:compile-contracts
yarn prepare:subgraph

I could deploy the subgraph with this little change. Waiting now for graph sync, hope everything works 🙏

@chulavege1
Copy link
Author

Thanks guys for support
Wish you luck! 💎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants