fix fundAccount TS errors

This commit is contained in:
Jonathan Rainville 2019-08-22 12:02:32 -04:00
parent f516dec200
commit dbb6bca1bb

View File

@ -1,4 +1,4 @@
import Web3 = require("web3");
import Web3 from "web3";
const TARGET = 0x7FFFFFFFFFFFFFFF;
@ -23,9 +23,9 @@ export default async function fundAccount(web3: Web3, accountAddress: string, co
return web3.eth.sendTransaction({
from: coinbaseAddress,
gasPrice,
nonce: lastNonce,
to: accountAddress,
value: targetBalance.sub(accountBalance),
gasPrice: gasPrice,
nonce: lastNonce
value: targetBalance.sub(accountBalance).toString(),
});
}