Skip to content

replace all .json to .artifact.ts#283

Merged
rkalis merged 3 commits into
CashScript:nextfrom
PHCitizen:refactor/to-artifact-ts
Apr 11, 2025
Merged

replace all .json to .artifact.ts#283
rkalis merged 3 commits into
CashScript:nextfrom
PHCitizen:refactor/to-artifact-ts

Conversation

@PHCitizen

Copy link
Copy Markdown
Contributor

closes #271

@vercel

vercel Bot commented Feb 24, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cashscript ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 11, 2025 9:11am

const provider = new ElectrumNetworkProvider(Network.CHIPNET);
const constructorArgs = [placeholder(65), placeholder(65), 1000000n];
const instance = new Contract(twtArtifact, constructorArgs, { provider });
const instance = new Contract(twtArtifact, [placeholder(65), placeholder(65), 1000000n], { provider });

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I just notice now that adding as const will make the array as read-only, however passing it to Contract will error because it expect mutable array. I just inline it, or any other suggestion?

@mr-zwets

Copy link
Copy Markdown
Member

Thanks for the PR! Indeed as const makes array as read-only, which is fine for our use-case.

However, after merging Kiok's branch into @next there are a bunch of merge conflicts

@rkalis

rkalis commented Apr 11, 2025

Copy link
Copy Markdown
Member

Thank you for this PR @PHCitizen!

@rkalis rkalis merged commit 66d058f into CashScript:next Apr 11, 2025
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.

3 participants