I am currently trying to build this small blockchain app using JS, truffle and solidity. However, I am stuck trying to run the following command: todoList = await Todolist.deploy(). It responds with Todolist is not defined.

This is my js migration file:

var Migrations = artifacts.require("./Migrations.sol");
    module.exports = function(deployer) {

This is my js deploy file:

var Todolist = artifacts.require("./Todolist.sol");

module.exports = function(deployer) {

I have tried truffle migrate --reset, but it doesn't seem to recognise the migrate part. Also, I have tried removing await from the codeline.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.