Skip to content

Commit

Permalink
non bonded actualRewardDestination
Browse files Browse the repository at this point in the history
  • Loading branch information
ironoa committed Nov 13, 2024
1 parent a5a7bd2 commit db41c62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/polkadot-watcher/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polkadot-watcher",
"version": "4.4.5",
"version": "4.4.6",
"description": "Monitor events on Polkadot networks",
"repository": "[email protected]:w3f/polkadot-watcher.git",
"author": "W3F Infrastructure Team <[email protected]>",
Expand Down
10 changes: 5 additions & 5 deletions src/subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit db41c62

Please sign in to comment.