Skip to content

fix: use version 0 for IndexingAgreementVersion.V1 in metadata validation#983

Open
MoonBoi9001 wants to merge 1 commit intofeat/dips-rejection-loggingfrom
fix/rca-metadata-version-enum
Open

fix: use version 0 for IndexingAgreementVersion.V1 in metadata validation#983
MoonBoi9001 wants to merge 1 commit intofeat/dips-rejection-loggingfrom
fix/rca-metadata-version-enum

Conversation

@MoonBoi9001
Copy link
Copy Markdown
Member

Motivation

During local DIPs end-to-end testing, valid V1 proposals were being rejected by the indexer-service with UnsupportedMetadataVersion(0). The version check was comparing against 1 when the Solidity enum IndexingAgreementVersion.V1 actually encodes as 0.

Summary

The Solidity enum IndexingAgreementVersion has V1 as its first variant, which encodes as 0 in the ABI. The validation was checking metadata.version != 1, which rejected all valid V1 proposals. Changed to != 0. Test metadata also updated to use version 0.

Companion to edgeandnode/dipper#583.

Generated with Claude Code

…tion

The Solidity enum IndexingAgreementVersion has V1 as its first variant,
which encodes as 0 in the ABI. The validation check was comparing against
1, causing all valid V1 proposals to be rejected with
UnsupportedMetadataVersion. Test data also updated to use version 0.

Companion to edgeandnode/dipper#583.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant