From 984f65be8b205e5cb1e076e390fe32300be3801e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Jakub=20Nani=C5=A1ta?= Date: Tue, 9 Apr 2024 11:25:00 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B2=20Fix=20wrong=20cheats=20(#551)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHEATSHEET.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHEATSHEET.md b/CHEATSHEET.md index 94b7397f0..97119c94f 100644 --- a/CHEATSHEET.md +++ b/CHEATSHEET.md @@ -104,9 +104,9 @@ const createContract = createConnectedContractFactory(); const eid = EndpointId.BST_MAINNET; -// We can ask for the contract by its name and eid -const contract = await createContract({ eid: address: '0x' }) +// We can ask for the contract by its address and eid +const contract = await createContract({ eid, address: "0x" }); -// Or its name -const contract = await createContract({ eid: contractName: 'MyOApp' }) +// Or its name and eid +const contract = await createContract({ eid, contractName: "MyOApp" }); ```