Hey Dani,
Thank you for all your help! I managed to solve the above on my own phew…
Now i am facing another hoop to jump through, another error message after migrating, check this out:
const Link = artifacts.require("Link");
const Wallet = artifacts.require("Wallet");
module.exports = async function (deployer, network, accounts) {
await deployer.deploy(Link);
let wallet = Wallet.deployed();
let link = await Link.deployed();
await link.approve(wallet.address, 500);
wallet.addToken(web3.utils.fromUtf8("LINK"), link.address);
await wallet.deposit(100, web3utils.fromUtf8("LINK"));
let balanceOfLink = await wallet.balances(accounts[0], web3.utils.fromUtf8("LINK"));
console.log(balanceOfLink);
};
Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.0.5) (argument="spender", value=undefined, code=INVALID_ARGUMENT, version=abi/5.0.7)