Overview
threshold_config.rs calls client.set_config() with an SLAConfig struct, but the actual contract accepts individual parameters. This file will not compile.
Evidence
File: apexchainx_calculator/src/threshold_config.rs, lines 18-26
File: apexchainx_calculator/src/lib.rs — actual signature uses individual params
Impact
- Test file is broken and will not compile
- Indicates tests were never run against current contract API
Proposed Solution
Update all set_config() calls to pass individual parameter values.
Acceptance Criteria
File Map
apexchainx_calculator/src/threshold_config.rs
Testing Strategy
Compile: cargo build must succeed. Unit: two threshold tests pass.
Labels: bug, high, good first issue, quick win
Priority: High
Difficulty: Beginner
Estimated Effort: 1h
Overview
threshold_config.rscallsclient.set_config()with anSLAConfigstruct, but the actual contract accepts individual parameters. This file will not compile.Evidence
File:
apexchainx_calculator/src/threshold_config.rs, lines 18-26File:
apexchainx_calculator/src/lib.rs— actual signature uses individual paramsImpact
Proposed Solution
Update all set_config() calls to pass individual parameter values.
Acceptance Criteria
File Map
apexchainx_calculator/src/threshold_config.rsTesting Strategy
Compile: cargo build must succeed. Unit: two threshold tests pass.
Labels: bug, high, good first issue, quick win
Priority: High
Difficulty: Beginner
Estimated Effort: 1h