menu

Truffle Suite

Sweet tools for smart contracts

Channels
Team
Posts
Chat
Members
Info

April 18, 2019 at 2:11am

Hi, I am struck with my work. When I call the deployed method in the below code

App.contracts.Election.deployed().then(function(instance){ electioninstance = instance; return electioninstance.name.call(0); }).then(function(name){ $("#election-name")[0].innerHTML = name; }).catch(function(err){ console.log(err.message); });

Receiving error message "self.web3.version.getNetwork is not a function". In trufflesuite I am unable to find function getNetwork.

  • reply
  • like

May 2, 2019 at 9:08pm

Hello, Upgrading pragma creates other errors. How do I make this contract work with this solc and truffle? Thanks!

  • reply
  • like