Guest User

Untitled

a guest
Mar 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. const MyContract = web3.eth.contract(MyContractABI)
  2. myContract = MyContract.at(contractAddress)
  3.  
  4. myContract.functionOne(addressParamater, function(err, res) {
  5. console.log(res)
  6. });
  7.  
  8. myContract.functionTwo(addressParamater, function(err, res) {
  9. console.log(res)
  10. });
  11.  
  12. Unhandled Rejection (Error): invalid address
  13.  
  14. web3.isAddress(addressParamater);
Add Comment
Please, Sign In to add comment