Skip to content

chain/ethereum: Include contract address and block number in ABI decode error messages#6490

Open
sueun-dev wants to merge 1 commit intographprotocol:masterfrom
sueun-dev:fix/issue-3404-abi-decode-error-context
Open

chain/ethereum: Include contract address and block number in ABI decode error messages#6490
sueun-dev wants to merge 1 commit intographprotocol:masterfrom
sueun-dev:fix/issue-3404-abi-decode-error-context

Conversation

@sueun-dev
Copy link
Copy Markdown

Closes #3404

When ABI decoding fails for Ethereum call handlers, the error messages only show the function ABI and raw bytes. Adding the contract address and block number makes it easier to correlate failures with specific on-chain calls.

Changes in chain/ethereum/src/data_source.rs:

  • Input decode error: add call.to (contract address) and call.block_number
  • Output decode error: add call.to, call.block_number, and raw input bytes

…de error messages

Add contract address and block number context to ABI decode error messages to help debugging.

Fixes graphprotocol#3404
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

Successfully merging this pull request may close these issues.

[Feature] Display the full JSON-RPC call in the logs that failed

1 participant