Skip to content

Commit b845746

Browse files
committed
Nit
1 parent f1d06ef commit b845746

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

examples/common.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ function to_hex(input) {
1919
return '0x' + input.toString('hex');
2020
}
2121

22-
async function authorizeAccount(api, pair, who, transactions, bytes, nonceMgr) {
23-
const tx = api.tx.transactionStorage.authorizeAccount(who, transactions, bytes);
24-
const sudo_tx = api.tx.sudo.sudo(tx);
25-
const result = await sudo_tx.signAndSend(pair, { nonce: nonceMgr.getAndIncrement() });
26-
console.log('Transaction authorizeAccount result:', result.toHuman());
27-
}
28-
2922
/**
3023
* Read the file, chunk it, store in Bulletin and return CIDs.
3124
* Returns { chunks }

0 commit comments

Comments
 (0)