From 3314ea1dcb1b7b414678d491547aef82378db978 Mon Sep 17 00:00:00 2001 From: "Demi M. Obenour" Date: Sun, 31 May 2020 17:07:23 -0400 Subject: [PATCH] Implement set_payee call --- src/frame/staking.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/frame/staking.rs b/src/frame/staking.rs index 3fad2a0e2e..7f213154d5 100644 --- a/src/frame/staking.rs +++ b/src/frame/staking.rs @@ -85,10 +85,13 @@ pub enum RewardDestination { Controller, } -impl Default for RewardDestination { - fn default() -> Self { - RewardDestination::Staked - } +/// Preference of what happens regarding validation. +#[derive(PartialEq, Eq, Clone, Encode, Decode, Debug, Call)] +pub struct SetPayeeCall { + /// The payee + pub payee: Perbill, + /// Marker for the runtime + pub _runtime: PhantomData, } /// Preference of what happens regarding validation.