diff --git a/source/ethers.js/source/cookbook-contracts.rst b/source/ethers.js/source/cookbook-contracts.rst index 290ccb0..6bac888 100644 --- a/source/ethers.js/source/cookbook-contracts.rst +++ b/source/ethers.js/source/cookbook-contracts.rst @@ -24,7 +24,7 @@ Using events, we can simulate a return value from a non-constant function. function increment() returns (uint256 sum) { _accum++; - Returns(_accum); + Return(_accum); } } @@ -50,7 +50,7 @@ Using events, we can simulate a return value from a non-constant function. const contractAddress = "0x..." - const contract = new Contract(contractAddress, abi) + const contract = new Contract(contractAddress, abi, wallet) async function increment() {