Add funds to Alice Swap address

This commit is contained in:
Oskar Thoren 2021-02-03 11:53:40 +08:00
parent 1291a7c30f
commit a9d85bc589
No known key found for this signature in database
GPG Key ID: BDB55C8C0EF29911
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,10 @@ async function main() {
var aliceBalance = (await erc20contract.balanceOf(aliceAddress)).toNumber();
var bobBalance = (await erc20contract.balanceOf(bobAddress)).toNumber();
// Transfer money to Alice Swap address
await erc20contract.transfer(aliceSwapAddress, 5000);
var aliceSwapBalance = (await erc20contract.balanceOf(aliceSwapAddress)).toNumber();
// Print stuff
console.log("ERC20:", erc20.address);
console.log("SimpleSwapFactory:", simpleSwapFactory.address);
@ -54,6 +58,7 @@ async function main() {
console.log("BobSwapAddress:", BobSwapAddress)
console.log("Alice ERC20 balance:", aliceBalance);
console.log("Bob ERC20 balance:", bobBalance);
console.log("Alice Swap balance:", aliceSwapBalance);
}
// We recommend this pattern to be able to use async/await everywhere