Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Nov 2, 2022
1 parent 150bb19 commit 1dd0708
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
3 changes: 1 addition & 2 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"test": "deno task run test_ctx.ts deno test -A --no-check=remote -L=info --ignore=target --parallel",
"test:update": "deno task test -- -- --update",
"mdbook:watch": "mdbook watch -o",
"bench": "deno bench -A --no-check=remote --unstable",
"polkagen": "deno task run codegen.ts -s=wss://rpc.polkadot.io -o=target/polkagen --import=../../mod.ts"
"bench": "deno bench -A --no-check=remote --unstable"
}
}
10 changes: 0 additions & 10 deletions examples/get_chain_spec.ts

This file was deleted.

9 changes: 3 additions & 6 deletions rpc_new/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ export function client<DiscoveryValue, SendErrorData, HandlerErrorData, CloseErr
provider: Provider<DiscoveryValue, SendErrorData, HandlerErrorData, CloseErrorData>,
discoveryValue: DiscoveryValue,
) {
return Z.call(
Z.ls(provider, discoveryValue),
() => {
return new Client(provider, discoveryValue);
},
);
return Z.call(Z.ls(provider, discoveryValue), () => {
return new Client(provider, discoveryValue);
});
}

export function call<Params extends unknown[], Result>(method: string) {
Expand Down

0 comments on commit 1dd0708

Please sign in to comment.