fix(cosmwasm,coordinator): adjust coordinator query command to contract's API #1068
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
why?
There's mismatch between deployment's query script and the Coordinator contract API.
testing
Manually tested on custom devnet
Note
Updates Coordinator query to use
deployment
and new*_address
fields, and simplifies contract config initialization before saving addresses.deployment
withdeployment_name
.verifier_address
,prover_address
,gateway_address
instead ofverifier
,prover
,gateway
.config.initContractConfig('VotingVerifier'|'MultisigProver'|'Gateway', chainName)
and then set.address
fields.Written by Cursor Bugbot for commit e5c8c0d. This will update automatically on new commits. Configure here.
Greptile Overview
Updated On: 2025-10-03 14:37:51 UTC
Summary
This PR fixes a mismatch between the deployment query script and the Coordinator contract's API in the CosmWasm module. The changes update the query structure and field mappings to align with the actual contract interface.The primary modifications include:
deployed_contracts
todeployment
to match the contract's expected query structureverifier
,prover
,gateway
) to more specific address field names (verifier_address
,prover_address
,gateway_address
)initContractConfig
method with direct assignment instead of spread operatorsThis fix ensures proper communication between the deployment tooling and the Coordinator contract, which is critical for querying deployed contract addresses in the CosmWasm ecosystem. The change improves maintainability by centralizing configuration initialization and eliminating redundant operations.
Changed Files
deployed_contracts
todeployment
and adjusts field mappings to match Coordinator contract APIConfidence score: 4/5
Sequence Diagram