From fad9011a8562a6925c1bd9c43a4e29766ea5cd4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Sun, 19 May 2024 23:51:40 +0200 Subject: [PATCH] Use correct function name --- docs/snippets/gettingStarted.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/snippets/gettingStarted.ts b/docs/snippets/gettingStarted.ts index 0d550b4e..bbdf8d78 100644 --- a/docs/snippets/gettingStarted.ts +++ b/docs/snippets/gettingStarted.ts @@ -7,7 +7,7 @@ import { createClient } from "polkadot-api" // [!region usage] // With the `client`, you can get information such as subscribing to the last // block to get the latest hash: -client.finalized$.subscribe((finalizedBlock) => +client.finalizedBlock$.subscribe((finalizedBlock) => console.log(finalizedBlock.number, finalizedBlock.hash), )