Skip to content

Commit d581823

Browse files
committed
Reformat
1 parent 3ad54bb commit d581823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/src/precompiles/staking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl StakingPrecompile {
108108
}
109109

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

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

0 commit comments

Comments
 (0)