Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit c2f51e5

Browse files
authored
fix: wasm error during transaction (#244)
Closes #243 - polkadot libraries were updated - updates for Metamask cli and build - switched to node 18 (16 got deprecated with the new metamask cli) - GitHub actions uses v 18 of node - Removed shasum check on GitHub actions as a new CLI updates the manifest file if it doesn't match
1 parent ea149fb commit c2f51e5

File tree

15 files changed

+3557
-1128
lines changed

15 files changed

+3557
-1128
lines changed

.github/workflows/cd.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
monorepo-tags: true
2525
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'
2626

27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
# these if statements ensure that a publication only occurs when
2929
# a new release is created:
3030
if: ${{ steps.release.outputs.releases_created }}
31-
32-
- uses: actions/setup-node@v3
31+
32+
- uses: actions/setup-node@v4
3333
with:
34-
node-version: 16
34+
node-version: 18
3535
registry-url: 'https://registry.npmjs.org'
3636
if: ${{ steps.release.outputs.releases_created }}
3737

.github/workflows/ci-workflow.yaml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,16 @@ jobs:
1515
# This job runs on Linux
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-node@v3
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
2020
with:
21-
node-version: '16.x'
21+
node-version: 18
2222
- run: corepack enable
2323
- run: yarn install --immutable
2424
- name: Build
2525
run: yarn run build
2626
- name: Run linter
2727
run: yarn run lint
28-
- uses: tj-actions/verify-changed-files@v17
29-
if: github.ref_name != 'master'
30-
id: verify-changed-files
31-
with:
32-
files: |
33-
packages/snap/snap.manifest.json
34-
- name: Check if snap manifest updated
35-
if: steps.verify-changed-files.outputs.files_changed == 'true'
36-
run: |
37-
echo "Snap manifest not updated: ${{ steps.verify-changed-files.outputs.changed_files }}
38-
or @metamask/snaps-cli version is different from local version"
39-
exit 1
4028
- name: Run tests
4129
run: yarn run test
4230

@@ -48,7 +36,7 @@ jobs:
4836
- uses: actions/checkout@v3
4937
- uses: actions/setup-node@v3
5038
with:
51-
node-version: '16.x'
39+
node-version: 18
5240
- run: corepack enable
5341
- name: Install
5442
run: yarn install --immutable

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

packages/adapter/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"access": "public"
1818
},
1919
"dependencies": {
20-
"@polkadot/api": "^10.9.1",
21-
"@polkadot/extension-inject": "^0.46.5",
22-
"@polkadot/types-augment": "^10.9.1"
20+
"@polkadot/api": "^12.4.2",
21+
"@polkadot/extension-inject": "^0.52.3",
22+
"@polkadot/types-augment": "^12.4.2"
2323
},
2424
"scripts": {
2525
"prebuild": "rm -rf build",

packages/adapter/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es6",
3+
"target": "ES2020",
44
"outDir": "build",
55
"rootDir": "src",
66
"moduleResolution": "node",

packages/example/.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ module.exports = {
88
},
99
rules: {
1010
'@typescript-eslint/no-unsafe-return': 'warn',
11+
"@typescript-eslint/no-unsafe-call": 'warn',
1112
'@typescript-eslint/no-unsafe-assignment': 'warn',
12-
'@typescript-eslint/no-misused-promises': 'off'
13+
'@typescript-eslint/no-misused-promises': 'off',
14+
'@typescript-eslint/no-unsafe-member-access': 'warn',
1315
}
1416
};

0 commit comments

Comments
 (0)