pallet-proxy: emit events on proxy added. (#9546)

* pallet-proxy: emit events on proxy added.

* Apply review suggestions.
This commit is contained in:
Shaun Wang
2021-08-25 22:27:56 +12:00
committed by GitHub
parent 5a347adad2
commit a7e714aeb1
2 changed files with 20 additions and 2 deletions
+1
View File
@@ -194,6 +194,7 @@ fn expect_events(e: Vec<Event>) {
fn announcement_works() {
new_test_ext().execute_with(|| {
assert_ok!(Proxy::add_proxy(Origin::signed(1), 3, ProxyType::Any, 1));
System::assert_last_event(ProxyEvent::ProxyAdded(1, 3, ProxyType::Any, 1).into());
assert_ok!(Proxy::add_proxy(Origin::signed(2), 3, ProxyType::Any, 1));
assert_eq!(Balances::reserved_balance(3), 0);