You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When adding a smart contract that depends on a trait (e.g., impl-trait x), the required traits should be automatically included alongside other contract dependencies.
Currently, this trait is not added to the .cache/requirements folder and the simnet-plan automatically.
Describe the solution you'd like
When running clarinet requirements add <contract-name>, any referenced traits should also be included in the .cache and simnet-plan.
Hey @BowTiedBlox
What you describe is the expected behaviour (if you add SP3D6PV2ACBPEKYJTCMH7HEN02KP87QSP8KTEH335.megapont-ape-club-nft as a requirement, you'll see that the nft-trait and the commission traits are also added in .cache and deployment plan).
So there must be something we are not handling correctly with this particular contract or trait you mentions.
We'll investigate, thanks for the detailled issue
Is your feature request related to a problem? Please describe.
When adding a smart contract that depends on a trait (e.g.,
impl-trait x
), the required traits should be automatically included alongside other contract dependencies.For example, in the smart contract SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-staking-sbtc-bdc-v-1-2.clar, the following trait dependency is declared:
Currently, this trait is not added to the
.cache/requirements
folder and thesimnet-plan
automatically.Describe the solution you'd like
When running
clarinet requirements add <contract-name>
, any referenced traits should also be included in the.cache
andsimnet-plan
.Example:
Expected behavior: The associated traits should be added automatically.
Describe alternatives you've considered
Additional context
Clarinet version used:
2.12.0
Might be related to #710 as the contract mentioned there, SPJ81C2WPQHFB6XTG518JKPABWM639R2X0B331XE.slimy-copper-walrus, uses traits as well.
The text was updated successfully, but these errors were encountered: