You should use send
instead of call
, because token transfer does modify blockchain state:
// transfer 100 tokens form 0xD0A88... to 0x36c90...
contract.transfer.send(
"0x36C90...",
100 * Math.pow (10, 18),
{
from: "0xD0A88..."
},
function(error, txHash) {
console.log(txHash);
});
BTW, you use floating point arithmetic to calculate number of tokens to be transferred. This way you will loose precision. You should use BigNumber
instead.