I'm currently trying to put in the function:
truffle console truffle (development) > const token = await Token.deployed()
And the result is coming up as undefined. I've started over my DAPP project twice and have reached the same point.
I deployed the contract in separate migration files. I received no error during migration. Related files are shared below:
1_initial_migration.js
const Migrations = artifacts.require("Migrations");
module.exports = function (deployer) { deployer.deploy(Migrations);
};
2_deploy_contracts.js
const Token = artifacts.require("Token");
module.exports = function (deployer) { deployer.deploy(Token); };