Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-otf committed Jan 2, 2025
1 parent 3ad54bb commit d581823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/precompiles/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl StakingPrecompile {
}

fn add_proxy(handle: &mut impl PrecompileHandle, data: &[u8]) -> PrecompileResult {
let delegate = Self::parse_pub_key(data)?;
let delegate = sp_runtime::MultiAddress::Address32(Self::parse_pub_key(data)?);
let call = RuntimeCall::Proxy(pallet_proxy::Call::<Runtime>::add_proxy {
delegate,
proxy_type: ProxyType::Staking,
Expand All @@ -119,7 +119,7 @@ impl StakingPrecompile {
}

fn remove_proxy(handle: &mut impl PrecompileHandle, data: &[u8]) -> PrecompileResult {
let delegate = Self::parse_pub_key(data)?;
let delegate = sp_runtime::MultiAddress::Address32(Self::parse_pub_key(data)?);
let call = RuntimeCall::Proxy(pallet_proxy::Call::<Runtime>::remove_proxy {
delegate,
proxy_type: ProxyType::Staking,
Expand Down

0 comments on commit d581823

Please sign in to comment.