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 June 05, 2019 13:28 PM

Updated November 28, 2018 21:28 PM

Updated May 29, 2019 15:28 PM