Skip to content

Commit 41cb8b9

Browse files
author
Willem Wyndham
authored
feat: update to new version of asc which includes string interpolation (#487)
* feat: update to new version of asc which includes string interpolation
1 parent f3707a1 commit 41cb8b9

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
test:
99
runs-on: ${{ matrix.platform }}
10-
name: "${{ matrix.platform }}"
10+
name: "${{ matrix.platform }} ${{ matrix.nodeversion }}"
1111
strategy:
1212
matrix:
1313
platform: [ubuntu-latest, macos-latest]

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ out/
2424
build/
2525

2626
!runtime/node_modules
27-
!near-mock-vm/pkg/*.wasm
27+
!near-mock-vm/pkg/*.wasm
28+
sim-ffi/sim-ffi/target/
29+
30+
sim-ffi/sim-ffi/index.node

sdk-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"@as-pect/cli": "^6.0.0",
1515
"as-bignum": "^0.2.15",
1616
"asbuild": "^0.0.11",
17-
"assemblyscript": "^0.18.9",
17+
"assemblyscript": "^0.18.20",
1818
"assemblyscript-json": "^1.0.0",
1919
"bn.js": "^5.1.1",
2020
"bs58": "^4.0.1",
2121
"js-base64": "^3.4.3",
2222
"near-vm": "^1.1.0",
23-
"visitor-as": "^0.4.0"
23+
"visitor-as": "^0.5.0"
2424
},
2525
"scripts": {
2626
"test": "yarn build",

sdk/assembly/__tests__/runtime.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,14 @@ describe("outcome", () => {
160160

161161
it("should return acturate logs", () => {
162162
logging.log("hello world");
163+
let nine = 9;
164+
const str = `should handle string interpolation ${nine} ${false}`;
165+
logging.log(str);
163166
expect(VM.logs()).toIncludeEqual(
164167
"hello world",
165168
'log should include "hello world"'
166169
);
170+
expect(VM.logs()).toIncludeEqual(str);
167171
});
168172

169173
it("should increase the storage usage more when first added", () => {

yarn.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)