Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
fix: smart_contract example client
Browse files Browse the repository at this point in the history
Co-authored-by: Harry Solovay <[email protected]>
  • Loading branch information
kratico and harrysolovay committed Dec 22, 2022
1 parent b6e5882 commit 1a956c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/smart_contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 1a956c5

Please sign in to comment.