Skip to content

Commit

Permalink
updating example code to 1.0 syntax (capital C)
Browse files Browse the repository at this point in the history
Two instances of the example in the "methods.myMethod.call" section were still showing the instantiation of the contract with a lower c.
  • Loading branch information
friedhelmensch authored Sep 27, 2018
1 parent 326e42f commit a387fd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/web3-eth-contract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ Example
}
// web3.js
var MyContract = new web3.eth.contract(abi, address);
var MyContract = new web3.eth.Contract(abi, address);
MyContract.methods.myFunction().call()
.then(console.log);
> Result {
Expand All @@ -502,7 +502,7 @@ Example
}
// web3.js
var MyContract = new web3.eth.contract(abi, address);
var MyContract = new web3.eth.Contract(abi, address);
MyContract.methods.myFunction().call()
.then(console.log);
> "Hello!%"
Expand Down

0 comments on commit a387fd8

Please sign in to comment.