Skip to content
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

Use PROPOSALS constant in models #65

Open
whoabuddy opened this issue Sep 1, 2023 · 0 comments
Open

Use PROPOSALS constant in models #65

whoabuddy opened this issue Sep 1, 2023 · 0 comments

Comments

@whoabuddy
Copy link
Contributor

If a model doesn't accept a name as an input, it should use the value in the PROPOSALS constant.

This ensures that the value only needs to be updated in Clarinet.toml and utils/common.ts.

See CCIP-017 code as an example:

export class CCIP017ExtendDirectExecuteSunsetPeriod {
name = PROPOSALS.CCIP_017;
static readonly ErrCode = ErrCode;
chain: Chain;
deployer: Account;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant