There is an issue with the code for deploying to rinkeby network using OpenZeppelin.
The amount that is set as supply is not in Ether, so metamask doesn't recognize this small amount. Need to use web3-utils.toWei function so that it is correctly passed as 1000 Ether
2_initial_migration.js
var utils = require('web3-utils');
var SampleToken = artifacts.require("SampleToken");
var number = utils.toWei("1000", "ether");
module.exports = function(deployer) {
deployer.deploy(SampleToken, "UdacityToken", "UET", 18, number);
};
There is an issue with the code for deploying to rinkeby network using OpenZeppelin.
The amount that is set as supply is not in Ether, so metamask doesn't recognize this small amount. Need to use web3-utils.toWei function so that it is correctly passed as 1000 Ether
2_initial_migration.js