From 1a956c56241555fe0b92685927af032d0b0c21b9 Mon Sep 17 00:00:00 2001 From: Matias Volpe Date: Tue, 20 Dec 2022 18:41:30 -0300 Subject: [PATCH] fix: smart_contract example client Co-authored-by: Harry Solovay --- examples/smart_contract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/smart_contract.ts b/examples/smart_contract.ts index 4dc5e1b80..b5cf39f56 100644 --- a/examples/smart_contract.ts +++ b/examples/smart_contract.ts @@ -70,7 +70,7 @@ const contractAddress = U.throwIfError( const prefix = U.throwIfError(await C.const(client)("System", "SS58Prefix").access("value").run()) console.log("Deployed Contract address", U.ss58.encode(prefix, contractAddress)) -const flipperContract = new C.fluent.Contract(C.polkadot, metadata, contractAddress) +const flipperContract = new C.fluent.Contract(client, metadata, contractAddress) console.log( ".get", await flipperContract.call({