From 1b83f045ee4573e32868609c0640126d36e64b6d Mon Sep 17 00:00:00 2001 From: Alexander Graebe Date: Wed, 21 Oct 2020 12:55:40 -0700 Subject: [PATCH] docs: opts > options --- src/pages/smart-contracts/signing-transactions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/smart-contracts/signing-transactions.md b/src/pages/smart-contracts/signing-transactions.md index 4594a7e4..53034cc5 100644 --- a/src/pages/smart-contracts/signing-transactions.md +++ b/src/pages/smart-contracts/signing-transactions.md @@ -34,7 +34,7 @@ import { openContractCall } from '@blockstack/connect'; // Here's an example of options: const myStatus = 'hey there'; -const opts = { +const options = { contractAddress: 'ST22T6ZS7HVWEMZHHFK77H4GTNDTWNPQAX8WZAKHJ', contractName: 'status', functionName: 'write-status!', @@ -55,7 +55,7 @@ const opts = { }, }; -await openContractCall(opts); +await openContractCall(options); ``` There are some required parameters needed when calling `openContractCall`. Here is the exact interface which describes what options you have: @@ -222,10 +222,10 @@ const MyComponent = () => { const { doContractCall } = useConnect(); const onClick = async () => { - const opts = { + const options = { /** See examples above */ }; - await doContractCall(opts); + await doContractCall(options); }; return Call my contract;