mirror of
https://github.com/status-im/autobounty.git
synced 2025-01-12 06:44:55 +00:00
Prevent token value being interpreted as Wei
This commit is contained in:
parent
cc86e5112e
commit
1d97979bc5
@ -126,7 +126,7 @@ async function sendTransaction (to, amount, gasPrice) {
|
||||
const tokenContract = config.tokenContracts[config.token]
|
||||
const contractAddress = tokenContract.address
|
||||
const contract = new Contract(contractAddress, tokenContract.abi, customSigner)
|
||||
const bigNumberAmount = ethers.utils.parseUnits(amount.toString())
|
||||
const bigNumberAmount = ethers.utils.parseUnits(amount.toString(), 'ether')
|
||||
|
||||
await contract.transfer(to, bigNumberAmount)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user