Skip to content

Commit

Permalink
using all calls (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Apr 9, 2024
1 parent 7383f4a commit 0092bab
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions runtime/laos/src/configs/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,18 @@ mod tests {
assert_eq!(pallet_proxy::Pallet::<Runtime>::proxies(&pure_proxy).0.len(), 1);

// Add a proxy and verify the count increases to 2
let call = Box::new(RuntimeCall::Proxy(pallet_proxy::Call::add_proxy {
let call = RuntimeCall::Proxy(pallet_proxy::Call::add_proxy {
delegate: bob,
proxy_type: ProxyType::Any,
delay,
}));
assert_ok!(pallet_proxy::Pallet::<Runtime>::proxy(
RuntimeOrigin::signed(alice),
pure_proxy,
None,
call
));
});

let call = RuntimeCall::Proxy(pallet_proxy::Call::proxy {
real: pure_proxy,
force_proxy_type: None,
call: Box::new(call),
});
assert_ok!(call.dispatch(RuntimeOrigin::signed(alice)));
assert_eq!(pallet_proxy::Pallet::<Runtime>::proxies(&pure_proxy).0.len(), 2);
});
}
Expand Down

0 comments on commit 0092bab

Please sign in to comment.