what is the web3 code for this function

by Nithin   Last Updated February 11, 2019 07:28 AM

function depositToken(address token,address User,uint amount)public {
  if (!ERC20(token).transferFrom(msg.sender, address(this), amount)) revert();
  _balances[token][User] = _balances[token][User]+amount;
}

what is the web3 code for solidity function to connect the web3.

Tags : solidity web3js


Related Questions


Updated December 20, 2018 15:28 PM

Updated December 20, 2018 14:28 PM

Updated November 28, 2018 21:28 PM

Updated August 28, 2018 12:28 PM

Updated January 06, 2019 18:28 PM