graphprotocol / support

Community support for the Hosted Service of The Graph
https://thegraph.com/
10 stars 3 forks source link

Handler skipped due to execution failure #88

Closed tapmapp closed 2 years ago

tapmapp commented 2 years ago

Hello, I am having an indexing error in the ropsten network with a super easy event. It seems there is an error with my handler but i can not really find where cause is quite simple. The contract is verified so you can take a look at the code if you wish

@schmidsi could you please show some light here please? :)

https://ropsten.etherscan.io/address/0xa427974fa3819593c0530c473ee7ff60c4e8446b#code

ID: QmZiby5mUNy5SWbbYuegybTL72CLY63XQQawj5giPF3Qki

event FaucetSent(address _from, uint256 _value);

type FaucetSentEvent @entity {
  id: ID!
  address: Bytes! # address
  amount: BigInt!
}
export function handleFaucetSent(event: FaucetSentEvent): void {
  let entity = new FaucetSentEvent(event.id);
  entity.id = event.id;
  entity.address = event.address;
  entity.amount = event.amount;
  entity.save();
}
Screenshot 2022-02-05 at 22 17 02
incrypto32 commented 2 years ago

@tapmapp in this code snippet event: FaucetSentEvent here you are using the entity name instead of the event FaucetEvent

Replace it and you are good. Please refer to docs here And reach out to our discord if you need help.