diff --git a/README.md b/README.md index 4355940..9fbfa31 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ main() More examples are in the [**examples**](./examples) directory. -To run them one by one, try: +To run them all, run the command: ```bash pnpm examples diff --git a/package.json b/package.json index 7bfcb25..e15ee78 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "dependencies": { "@polkadot/api": "^10.9.1", "@polkadot/extension-dapp": "^0.46.5", + "@polkadot/util": "^12.5.1", "axios": "^1.4.0", "bs58": "^5.0.0", "lodash": "^4.17.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2f6d261..2605e05 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ dependencies: '@polkadot/extension-dapp': specifier: ^0.46.5 version: 0.46.5(@polkadot/api@10.10.1)(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.5.1) + '@polkadot/util': + specifier: ^12.5.1 + version: 12.5.1 axios: specifier: ^1.4.0 version: 1.5.1 diff --git a/src/examples/index.ts b/src/examples/index.ts index 7b6b48c..f689e95 100644 --- a/src/examples/index.ts +++ b/src/examples/index.ts @@ -4,13 +4,7 @@ import { execFile } from "node:child_process"; // These files are relative to the script path. Surely we can use glob, but let's do it // meticulously here, enabling our examples one-by-one. -const EXAMPLE_FILES = [ - "authorize.js", - "bucket.js", - "file.cjs", // note: need help from CESS team on looking into file.cjs upload/download - "space.cjs", - "space.mjs", -]; +const EXAMPLE_FILES = ["authorize.js", "bucket.js", "file.cjs", "space.cjs", "space.mjs"]; const execAsync = promisify(execFile);