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



Cannot find module fs in truffle based html page

Updated December 20, 2018 14:28 PM

miner.start() is not a function?

Updated June 05, 2019 13:28 PM

Make Smart Contract Only Accessible from a Web App

Updated November 28, 2018 21:28 PM