Skip to content

Commit

Permalink
Fix period assumption on signingInfo (#5901)
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul authored Jun 7, 2024
1 parent a437f98 commit 0bca92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-derive/src/tx/signingInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function babeOrAuraPeriod (api: DeriveApi): BN | undefined {
(api.consts['aura'] as unknown as Aura)?.slotDuration ||
api.consts.timestamp?.minimumPeriod.muln(2);

return !period.isZero() ? period : undefined;
return period && period.isZero && !period.isZero() ? period : undefined;
}

export function signingInfo (_instanceId: string, api: DeriveApi): (address: string, nonce?: AnyNumber | Codec, era?: IExtrinsicEra | number) => Observable<Result> {
Expand Down

0 comments on commit 0bca92c

Please sign in to comment.