From 2092b805b6a72e5a39d01ff6776c774eee25c41e Mon Sep 17 00:00:00 2001 From: Micah Zoltu Date: Tue, 23 May 2017 05:37:27 -0700 Subject: [PATCH] Updated docs slightly. (#5674) These docs _really_ need a lot of improvement (like what are the options that go in `{}`, but at least they are now not outright incorrect. --- js/src/api/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/api/README.md b/js/src/api/README.md index b7c8240b0..1a2051eaf 100644 --- a/js/src/api/README.md +++ b/js/src/api/README.md @@ -109,9 +109,9 @@ contract.at('0xa9280...7347b'); find & call a function ```javascript -contract.named - .callMe - .call({ gas: 21000 }, [true, 'someString']) // or estimateGas or sendTransaction +contract.instance + .myContractMethodName + .call({}, [myContractMethodParameter]) // or estimateGas or sendTransaction .then((result) => { console.log(`the result was ${result}`); });