@@ -31,14 +31,14 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.3",
|
||||
"@polkadot/api-derive": "^1.1.0-beta.16",
|
||||
"@polkadot/keyring": "^2.1.0-beta.1",
|
||||
"@polkadot/keyring": "^2.1.1",
|
||||
"@polkadot/metadata": "^1.1.0-beta.16",
|
||||
"@polkadot/rpc-core": "^1.1.0-beta.16",
|
||||
"@polkadot/rpc-provider": "^1.1.0-beta.16",
|
||||
"@polkadot/types": "^1.1.0-beta.16",
|
||||
"@polkadot/util-crypto": "^2.1.0-beta.1"
|
||||
"@polkadot/util-crypto": "^2.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.1.0-beta.1"
|
||||
"@polkadot/keyring": "^2.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,6 +116,13 @@ async function tx (api: ApiPromise, keyring: TestKeyringMap): Promise<void> {
|
||||
|
||||
unsub2();
|
||||
});
|
||||
|
||||
// it allows for query & then using the submittable
|
||||
const second = api.tx.democracy.second(123);
|
||||
|
||||
second.signAndSend('123', (result): void => {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
|
||||
async function main (): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user