Skip to content

Commit aec6128

Browse files
authored
fix: fetching finalized block for extensions via external clients (#725)
1 parent f9f1bd8 commit aec6128

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/api/src/extrinsic/extensions/known/CheckMortality.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ export class CheckMortality extends SignedExtension<EraLike, Hash> {
4343
}
4444

4545
async #getSigningHeaderRpcV2(): Promise<SigningHeader> {
46-
const api = this.client as V2Client;
4746
// TODO similar to the legacy, we should account for the case finality is lagging behind
48-
const finalizedBlock = await api.chainHead.finalizedBlock();
47+
const finalizedBlock = await this.client.block.finalized();
4948

5049
return {
5150
hash: finalizedBlock.hash,

0 commit comments

Comments
 (0)