Hey, as the title says I wrote a migration file for the ERC20 contract I created during bootcamp. However it doesn’t seem to be assigning 100 units of the token to address[2] as indicated in the migration file.
Here is the migration file:
const ERC20 = artifacts.require("ERC20");
module.exports = function(deployer, network, accounts) {
deployer.deploy(ERC20, "MyToyToken", "MTT").then(function(instance){
instance.mint(accounts[2], 100);
});
};
When I try to run
instance.balanceOf(accounts[2])
I get:
<BN: 64>
Shouldn’t I get 100?
Thanks!