Skip to content

Commit

Permalink
Add a test case for checking metadata hash
Browse files Browse the repository at this point in the history
Signed-off-by: Jamie <[email protected]>
  • Loading branch information
Dengjianping committed Aug 1, 2024
1 parent 2cf703b commit 1723a38
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/check_metadata_hash.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"parachain_lease_test": "mocha -r ts-node/register check_parachain_lease_expiration.ts",
"test_farming": "mocha -r ts-node/register test-farming.ts",
"reconstruct_pallet_storages": "mocha -r ts-node/register reconstruct_pallet_storages.ts",
"metadata_hash": "mocha -r ts-node/register check_metadata_hash.ts",
"tests": "mocha -r ts-node/register --timeout 50000 tests/test-*.ts",
"lint": "eslint ."
},
Expand All @@ -24,6 +25,7 @@
"@types/minimist": "^1.2.2",
"@types/yargs": "^17.0.0",
"big-json": "^3.2.0",
"merkleized-metadata": "^0.1.0",
"minimist": "^1.2.5",
"ts-node": "^10.8.0",
"typescript": "^4.7.4"
Expand Down
12 changes: 12 additions & 0 deletions tests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,18 @@ merge2@^1.3.0, merge2@^1.4.1:
resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz"
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==

merkleized-metadata-sys@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/merkleized-metadata-sys/-/merkleized-metadata-sys-0.1.0.tgz#90a84fcd7f148034a1d3f51299137b3b3a0cd9f7"
integrity sha512-hgm/tyayePap4/BxbHNG477LswfIZEn8/8bTMS+d2t5ER47soCQPJ11AMqDHWDZHKI8lttOvuosGtOupF3W2hQ==

merkleized-metadata@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/merkleized-metadata/-/merkleized-metadata-0.1.0.tgz#6d0c4edc2512e489f4554f421cb9006d5ae7e424"
integrity sha512-pZAMhe8u0Ob9NxijPKbPp5JurPXROpnIDqCcOdNPuGQ6he6I7dDn2qV61/IcKKkc8rI76wo5uxcX3S8waHpRsw==
dependencies:
merkleized-metadata-sys "^0.1.0"

micromatch@^4.0.4:
version "4.0.5"
resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz"
Expand Down

0 comments on commit 1723a38

Please sign in to comment.