Skip to content

Add error handling for getContractAST in project traits - #265

Closed
friedger wants to merge 1 commit into
stx-labs:masterfrom
friedger:patch-1
Closed

Add error handling for getContractAST in project traits#265
friedger wants to merge 1 commit into
stx-labs:masterfrom
friedger:patch-1

Conversation

@friedger

Copy link
Copy Markdown
Contributor

This PR

Handle cases where getContractAST may throw due to non-introspectable contracts.
Comment thread traits.ts
Record<string, ImplementedTraitType[]>
>((acc, contractId) => {
const ast = simnet.getContractAST(contractId);
// Some deployed contracts (notably remote `requirements` contracts) have

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important note to avoid confusion;

Remote doesn't rely on requirements at all.
It simply fetch whatever data your request from the Node RPC enpoints.

requirements are still being used for local development

@friedger

Copy link
Copy Markdown
Contributor Author

we have now rv 1.0.1

@friedger friedger closed this Jun 24, 2026
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

Successfully merging this pull request may close these issues.

rv crashes ("err") on projects using requirements

2 participants