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

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi committed Nov 9, 2022
1 parent 32f9d9f commit af1b6b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions examples/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import * as C from "../mod.ts";
import * as T from "../test_util/mod.ts";
import * as U from "../util/mod.ts";

import * as westend from "../codegen/_output/westend/mod.ts";
import MultiAddress = westend.sp_runtime.multiaddress.MultiAddress;
import MultiSignature = westend.sp_runtime.MultiSignature;
import { Balances, Utility } from "../codegen/_output/westend/pallets/mod.ts";
import { MultiSignature } from "../codegen/_output/westend/sp_runtime/mod.ts";
import { MultiAddress } from "../codegen/_output/westend/sp_runtime/multiaddress.ts";

const recipients = [T.bob, T.charlie, T.dave, T.eve];

Expand All @@ -21,9 +21,9 @@ const env = C.Z.env();
const runTx = C.extrinsic({
client: T.westend,
sender: MultiAddress.Id(T.alice.publicKey),
call: westend.pallets.Utility.batch_all({
call: Utility.batch_all({
calls: recipients.map(({ publicKey }) =>
westend.pallets.Balances.transfer({
Balances.transfer({
dest: MultiAddress.Id(publicKey),
value: 12345n,
})
Expand Down
8 changes: 4 additions & 4 deletions examples/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import * as C from "../mod.ts";
import * as T from "../test_util/mod.ts";
import * as U from "../util/mod.ts";

import * as westend from "../codegen/_output/westend/mod.ts";
import MultiAddress = westend.sp_runtime.multiaddress.MultiAddress;
import MultiSignature = westend.sp_runtime.MultiSignature;
import { Balances } from "../codegen/_output/westend/pallets/mod.ts";
import { MultiSignature } from "../codegen/_output/westend/sp_runtime/mod.ts";
import { MultiAddress } from "../codegen/_output/westend/sp_runtime/multiaddress.ts";

const root = C.extrinsic({
client: T.westend,
sender: MultiAddress.Id(T.alice.publicKey),
call: westend.pallets.Balances.transfer({
call: Balances.transfer({
value: 12345n,
dest: MultiAddress.Id(T.bob.publicKey),
}),
Expand Down

0 comments on commit af1b6b5

Please sign in to comment.