Make find_proxy public. (#9094)

export `pallet_proxy::find_prox` and `ProxyDefinition`.
This commit is contained in:
chenwei authored and GitHub committed 2021-06-13 12:27:54 +02:00
1 parent 2d04fa8717
commit df0a50f966
1 file changed
+4 -4
+4 -4
View File
@@ -64,12 +64,12 @@ type BalanceOf<T> = <<T as Config>::Currency as Currency<<T as frame_system::Con
#[derive(Encode, Decode, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, RuntimeDebug, MaxEncodedLen)]
pub struct ProxyDefinition<AccountId, ProxyType, BlockNumber> {
/// The account which may act on behalf of another.
delegate: AccountId,
pub delegate: AccountId,
/// A value defining the subset of calls that it is allowed to make.
proxy_type: ProxyType,
pub proxy_type: ProxyType,
/// The number of blocks that an announcement must be in place for before the corresponding call
/// may be dispatched. If zero, then no announcement is needed.
delay: BlockNumber,
pub delay: BlockNumber,
}
/// Details surrounding a specific instance of an announcement to make a call.
@@ -734,7 +734,7 @@ impl<T: Config> Pallet<T> {
})
}
fn find_proxy(
pub fn find_proxy(
real: &T::AccountId,
delegate: &T::AccountId,
force_proxy_type: Option<T::ProxyType>,