Skip to content

Commit

Permalink
fix: Update RewardDestination for staking.setPayee (paritytech#393)
Browse files Browse the repository at this point in the history
* fix: Update RewardDestination for staking.setPayee

* Revert changes to example

* Clean up
  • Loading branch information
emostov committed Feb 23, 2021
1 parent 5083038 commit bdafb18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions src/methods/staking/bond.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
Args,
BaseTxInfo,
createMethod,
OptionsWithMeta,
UnsignedTransaction,
} from '../../util';
import { StakingSetPayeeArgs } from './setPayee';

export interface StakingBondArgs extends Args {
export interface StakingBondArgs extends StakingSetPayeeArgs {
/**
* The SS-58 encoded address of the Controller account.
*/
Expand All @@ -15,10 +15,6 @@ export interface StakingBondArgs extends Args {
* The number of tokens to bond.
*/
value: number | string;
/**
* The rewards destination. Can be "Stash", "Staked", "Controller" or "{ Account: accountId }"".
*/
payee: string | { Account: string };
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/methods/staking/setPayee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {

export interface StakingSetPayeeArgs extends Args {
/**
* The `RewardDestination`. It can be one of 'Staking', 'Stash', or 'Controller'.
* The rewards destination. Can be "Stash", "Staked", "Controller" or "{ Account: accountId }"".
*/
payee: string;
payee: string | { Account: string };
}

/**
Expand Down

0 comments on commit bdafb18

Please sign in to comment.