Skip to content

Commit

Permalink
add missing await keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
shibatales committed Jan 10, 2024
1 parent f17b7b8 commit 64cb3f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/xtransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ const Transfer = () => {
// Multiply the amount by 10^12 and convert to a string
const amountToSend = amountBigNumber.multipliedBy(new BigNumber(10).pow(12)).toString();

api.tx.xTokens
await api.tx.xTokens
.transfer(
0,
amountToSend,
Expand Down Expand Up @@ -367,11 +367,11 @@ const Transfer = () => {
const apiBasilisk = await ApiPromise.create({
provider: wsProviderBasilisk,
});

console.log('amountBigNumber', amountBigNumber.toString());
// Multiply the amount by 10^12 and convert to a string
const amountToSend = amountBigNumber.multipliedBy(new BigNumber(10).pow(12)).toString();

apiBasilisk.tx.xTokens
await apiBasilisk.tx.xTokens
.transfer(
6,
amountToSend,
Expand Down

0 comments on commit 64cb3f6

Please sign in to comment.