From db41c62d9d09daaaf6dd5ff331f8a241fdd6fe61 Mon Sep 17 00:00:00 2001 From: Alessio Onori Date: Wed, 13 Nov 2024 12:34:12 +0100 Subject: [PATCH] non bonded actualRewardDestination --- charts/polkadot-watcher/Chart.yaml | 4 ++-- package.json | 2 +- src/subscriber.ts | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/polkadot-watcher/Chart.yaml b/charts/polkadot-watcher/Chart.yaml index 887d47e..9b35bf6 100644 --- a/charts/polkadot-watcher/Chart.yaml +++ b/charts/polkadot-watcher/Chart.yaml @@ -1,5 +1,5 @@ description: Polkadot Watcher name: polkadot-watcher -version: v4.4.5 -appVersion: v4.4.5 +version: v4.4.6 +appVersion: v4.4.6 apiVersion: v2 diff --git a/package.json b/package.json index 1d07082..9159262 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polkadot-watcher", - "version": "4.4.5", + "version": "4.4.6", "description": "Monitor events on Polkadot networks", "repository": "git@github.com:w3f/polkadot-watcher.git", "author": "W3F Infrastructure Team ", diff --git a/src/subscriber.ts b/src/subscriber.ts index 2782f7c..8b1f881 100644 --- a/src/subscriber.ts +++ b/src/subscriber.ts @@ -96,19 +96,19 @@ export class Subscriber { isOkPayee = false switch (v.expected.payee) { case "Staked": - isOkPayee = actualRewardDestination.isStaked + isOkPayee = actualRewardDestination?.isStaked break; case "Stash": - isOkPayee = actualRewardDestination.isStash + isOkPayee = actualRewardDestination?.isStash break; case "Controller": - isOkPayee = actualRewardDestination.isController + isOkPayee = actualRewardDestination?.isController break; case "None": - isOkPayee = actualRewardDestination.isNone + isOkPayee = actualRewardDestination?.isNone break; default: - isOkPayee = actualRewardDestination.isAccount && v.expected.payee == actualRewardDestination.asAccount.toString() + isOkPayee = actualRewardDestination?.isAccount && v.expected.payee == actualRewardDestination?.asAccount.toString() break; } }