You can also use the provided accounts from the truffle local blockchain (truffle develop
), then you can use the accounts
argument to get a list of addresses to use for the constructor.
You will be have to do something like this:
const Wallet = artifacts.require("Wallet");
module.exports = function (deployer, network, accounts) {
deployer.deploy(Wallet, [accounts[0], accounts[1], accounts[2], 1);
};
There might be a revert getting triggered, i advice you to add a error message for each require
to know who is getting triggered.
require(transferRequests[_id].hasBeenSent == false, "transaction has been sent");
In case transaction.hasbeensent = true, the revert error message will be triggered.
Hope this helps.
Carlos Z