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

fix: reduce updateScriptRequest invocations and init asm for contract instructions #1240

Merged
merged 17 commits into from
Sep 8, 2023

Conversation

camsjams
Copy link
Contributor

@camsjams camsjams commented Sep 6, 2023

Fixes #1227

By reducing the amount of calls to updateScriptRequest, we can add an await for the ASM library before its used inside the creation of the contract call script

@camsjams camsjams enabled auto-merge (squash) September 6, 2023 06:35
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
84.49% (-0.04% 🔻)
4947/5855
🟡 Branches
65.76% (-0.12% 🔻)
749/1139
🟡 Functions
73.92% (-0.07% 🔻)
836/1131
🟢 Lines
84.59% (-0.04% 🔻)
4726/5587
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / contract-call-script.ts
21.21% (-0.44% 🔻)
0% 0%
20.43% (-0.45% 🔻)

Test suite run success

1201 tests passing in 207 suites.

Report generated by 🧪jest coverage report action from f267aeb

@camsjams camsjams changed the title fix: initialize asm wasm module in file header fix: reduce when updateScriptRequest invocations and init asm for contract instructions Sep 8, 2023
@camsjams camsjams changed the title fix: reduce when updateScriptRequest invocations and init asm for contract instructions fix: reduce updateScriptRequest invocations and init asm for contract instructions Sep 8, 2023
Cameron Manavian added 2 commits September 7, 2023 23:14
@camsjams camsjams merged commit 406e7a7 into master Sep 8, 2023
8 checks passed
@camsjams camsjams deleted the cm/issue-1227 branch September 8, 2023 10:42
@arboleya
Copy link
Member

arboleya commented Sep 9, 2023

Having at least one test that reliably fails without the await would help prevent future problems.

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.

Await for WASM initialization
4 participants