Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Sramko committed Oct 20, 2021
1 parent c7a89ef commit f51056b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transaction/bsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ export const prepareBscOrBep20SignedTransaction = async (body: TransferBscBep20,
}
} else {
// @ts-ignore
const contract = new client.eth.Contract([TRANSFER_METHOD_ABI], CONTRACT_ADDRESSES[currency])
const digits = new BigNumber(10).pow(CONTRACT_DECIMALS[currency])
const contract = new client.eth.Contract([TRANSFER_METHOD_ABI], CONTRACT_ADDRESSES[currency]);
const digits = new BigNumber(10).pow(CONTRACT_DECIMALS[currency as string]);
tx = {
from: 0,
to: CONTRACT_ADDRESSES[currency],
to: CONTRACT_ADDRESSES[currency as string],
data: contract.methods.transfer(to.trim(), `0x${new BigNumber(amount).multipliedBy(digits).toString(16)}`).encodeABI(),
nonce,
}
Expand Down

0 comments on commit f51056b

Please sign in to comment.