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

replace all .json to .artifact.ts #283

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

PHCitizen
Copy link
Contributor

closes #271

Copy link

vercel bot commented Feb 24, 2025

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 Mar 2, 2025 9:37am

@@ -62,8 +65,7 @@ describe('Contract', () => {

it('should create new TransferWithTimeout instance', () => {
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
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
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

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.

2 participants