I want to update an entity in my subgraph, when my contract receives ETH.
I tried to use callHandler that looks like this:
callHandlers:
- function: receive()
handler: handleReceive
But it doesn’t work. The payable method in the contract looks like this:
receive() external payable {
if (autoEthDistribution) {
_redistributeEth(msg.value);
}
}
Any help would be appreciated