Skip to content

Commit

Permalink
doc: fix example (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
weichweich authored Feb 22, 2022
1 parent 7e29b9b commit 81453fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/balance/Balance.chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export async function listenToBalanceChanges(
*
* @param accountAddressTo Address of the receiver account.
* @param amount Amount of Units to transfer.
* @param exponent Magnitude of the amount. Default magnitude of Femto-Kilt.
* @param exponent Magnitude of the amount. Default magnitude of -15 represents Femto-Kilt. Use 0 for KILT.
* @returns Promise containing unsigned SubmittableExtrinsic.
*
* @example
Expand All @@ -124,9 +124,9 @@ export async function listenToBalanceChanges(
* const address = ...
* const amount: BN = new BN(42)
* const blockchain = await sdk.getConnectionOrConnect()
* sdk.Balance.makeTransfer(address, amount, 0) //
* .then(tx => BlockchainUtils.signAndSendTx(tx, identity))
* .then(() => console.log('Successfully transferred ${amount.toNumber()} tokens'))
* sdk.Balance.makeTransfer(address, amount, 0) // transfer 42 KILT
* .then(tx => sdk.BlockchainUtils.signAndSubmitTx(tx, identity))
* .then(() => console.log(`Successfully transferred ${amount.toNumber()} tokens`))
* .catch(err => {
* console.log('Transfer failed')
* })
Expand Down

0 comments on commit 81453fc

Please sign in to comment.