From a387fd8a9f325be9b6401b39ae1b6a9660b64ace Mon Sep 17 00:00:00 2001 From: friedhelmensch Date: Thu, 27 Sep 2018 22:05:05 +0200 Subject: [PATCH] updating example code to 1.0 syntax (capital C) Two instances of the example in the "methods.myMethod.call" section were still showing the instantiation of the contract with a lower c. --- docs/web3-eth-contract.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/web3-eth-contract.rst b/docs/web3-eth-contract.rst index 79fb0f208d9..d89682bb937 100644 --- a/docs/web3-eth-contract.rst +++ b/docs/web3-eth-contract.rst @@ -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 { @@ -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!%"