File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ impl StakingPrecompile {
108
108
}
109
109
110
110
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) ?) ;
112
112
let call = RuntimeCall :: Proxy ( pallet_proxy:: Call :: < Runtime > :: add_proxy {
113
113
delegate,
114
114
proxy_type : ProxyType :: Staking ,
@@ -119,7 +119,7 @@ impl StakingPrecompile {
119
119
}
120
120
121
121
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) ?) ;
123
123
let call = RuntimeCall :: Proxy ( pallet_proxy:: Call :: < Runtime > :: remove_proxy {
124
124
delegate,
125
125
proxy_type : ProxyType :: Staking ,
You can’t perform that action at this time.
0 commit comments