For example I have a testing block like this:
contract('CreeptomaPresale', function(accounts) {
describe("adopted over allow quantity", function () {
it("test get balance", async function () {
let instance = await CreeptomaPresale.deployed();
console.log("deployed address:" + address)
});
});
});
I can get deployed address. But now, I don't know how to get balance of this address or any other addresses.
Thanks
accountsinto your test. Transactions are signed{from: accounts[0]}by default. As a matter of style, I like to set up some vars for roles likeowner=accounts[0],funder=,sponsor=, etc. up front and then specify who is talking every step of the way, e.g.{from: funder1}– Rob Hitchens Apr 18 '18 at 05:14