All builders that invoke .get_chain should support overriding Neutron to some custom chain. This will involve removing all calls to .get_contract, and replacing them with .get_contract_on, which takes the chain to get the contract code ID from as a parameter.
Related: #11 . Migrating all queries, like get_contract to the TestContextQuery allows more gently deprecating .get_contract by allowing users to not specify the src_chain, defaulting to Neutron.
Recommendations
- Deprecate
.get_contract (move to TestContextQuery if possible)
- Move
.get_contract to a TestContextQuery
- Make all builders that deal with a chain expose and respect
.with_chain
All builders that invoke
.get_chainshould support overriding Neutron to some custom chain. This will involve removing all calls to.get_contract, and replacing them with.get_contract_on, which takes the chain to get the contract code ID from as a parameter.Related: #11 . Migrating all queries, like
get_contractto theTestContextQueryallows more gently deprecating.get_contractby allowing users to not specify the src_chain, defaulting to Neutron.Recommendations
.get_contract(move to TestContextQuery if possible).get_contractto aTestContextQuery.with_chain