Fix make transfer example (#10094)
This commit is contained in:
parent
966f214323
commit
3b69829add
@ -22,7 +22,7 @@ const randomAmount = Math.floor((Math.random() * 100000) + 1);
|
||||
const transfer = api.tx.balances.transferAllowDeath(BOB, randomAmount);
|
||||
|
||||
// Sign and Send the transaction
|
||||
await transferAllowDeath.signAndSend(ALICE, ({ events = [], status }) => {
|
||||
await transfer.signAndSend(ALICE, ({ events = [], status }) => {
|
||||
if (status.isInBlock) {
|
||||
console.log('Successful transfer of ' + randomAmount + ' with hash ' + status.asInBlock.toHex());
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user