Fix make transfer example (#10094)

This commit is contained in:
Uğur Eren 2023-12-18 10:47:49 +03:00 committed by GitHub
parent 966f214323
commit 3b69829add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {