Skip to content

Use PROPOSALS constant in models #65

@whoabuddy

Description

@whoabuddy

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions