I'm doing testing of smart contract when I try to transfer token using https://remix.ethereum.org. That was working fine. But now I want to write its test case but that is not working fine and not transferring the tokens. Code:
it('should properly [transfer] token', async function() {
let recipient = "0xe0f5206bbd039e7b0592d8918820024e2a7437b9";
let tokenWei = 1000000;
let status = await contract.methods.transfer(recipient, tokenWei).call();
console.log(status);
let ownerBalance = await contract.methods.balanceOf(owner).call();
let recipientBalance = await contract.methods.balanceOf("0xe0f5206bbd039e7b0592d8918820024e2a7437b9").call();
console.log("Balance:"+ownerBalance +'----'+recipientBalance);
});
Output is like this.
status = true
Balance:1705243055----100000000
These balaces are exactly same as before mean no deduction from owner account and no addition in recipient account.
Any guidance/help will be appreciated.
Thanks