Adapt to new @polkadot/keyring KeyPair interface (#994)

* Adapt to new @polkadot/keyring KeyPair interface

* Pull in common 0.93.0-beta.4
This commit is contained in:
Axel Chalon
2019-06-13 10:44:47 +02:00
committed by Jaco Greeff
parent c43378beb2
commit 3ab581119d
27 changed files with 107 additions and 107 deletions
@@ -28,9 +28,9 @@ async function main () {
const alicePair = keyring.getPair(ALICE);
// create a new random recipient
const recipient = keyring.addFromSeed(randomAsU8a(32)).address();
const recipient = keyring.addFromSeed(randomAsU8a(32)).address;
console.log('Sending', AMOUNT, 'from', alicePair.address(), 'to', recipient, 'with nonce', nonce.toString());
console.log('Sending', AMOUNT, 'from', alicePair.address, 'to', recipient, 'with nonce', nonce.toString());
// Do the transfer and track the actual status
api.tx.balances
+2 -2
View File
@@ -24,9 +24,9 @@ async function main () {
const alicePair = keyring.getPair(ALICE);
// create a new random recipient
const recipient = keyring.addFromSeed(randomAsU8a(32)).address();
const recipient = keyring.addFromSeed(randomAsU8a(32)).address;
console.log('Sending', AMOUNT, 'from', alicePair.address(), 'to', recipient);
console.log('Sending', AMOUNT, 'from', alicePair.address, 'to', recipient);
// get the nonce for the admin key
// Create a extrinsic, transferring 12345 units to Bob.