Skip to content

Use V2 ABI for V2 registry client#7

Open
samsamtrum wants to merge 1 commit into
ZhangJinHaHaHa:mainfrom
samsamtrum:fix-v2-client-abi
Open

Use V2 ABI for V2 registry client#7
samsamtrum wants to merge 1 commit into
ZhangJinHaHaHa:mainfrom
samsamtrum:fix-v2-client-abi

Conversation

@samsamtrum
Copy link
Copy Markdown

Summary

  • wire createAgentAuditRegistryV2Client to AgentAuditRegistryV2.json
  • keep the V3 artifact reserved for V3-specific reads

Why

The V2 client currently instantiates the contract with the V3 ABI. When the configured address points to a V2 deployment, V2 reads can fail with confusing decode errors or return data decoded against the wrong ABI shape.

Test

  • npm --prefix frontend test -- --run src/lib/agentAuditRegistryClient.test.ts
  • npm --prefix frontend run build

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