-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: default to .signers
boot contract in signer config
#4266
feat: default to .signers
boot contract in signer config
#4266
Conversation
d46af99
to
ea77566
Compare
Some(id) => QualifiedContractIdentifier::parse(&id).map_err(|_| { | ||
ConfigError::BadField("stackerdb_contract_id".to_string(), id.clone()) | ||
})?, | ||
None => boot_code_id("signers", raw_data.network == Network::Mainnet), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it an issue to run the signer against testnet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, this is just setting the boot code address depending on the signer's config
dafd97a
to
5e7726d
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## next #4266 +/- ##
==========================================
- Coverage 83.41% 83.31% -0.10%
==========================================
Files 432 432
Lines 307438 307468 +30
==========================================
- Hits 256445 256172 -273
- Misses 50993 51296 +303 ☔ View full report in Codecov by Sentry. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This small change makes the
stackerdb_contract_id
config variable for the signer an optional field. When it isn't provided, it defaults toBOOT_CODE_ADDR.signers
.Although all testing (unit and functional) is currently done with "mock" contracts, it might make sense to wait for #4263 before merging. We can also choose to merge this into that PR.