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 authored and GitHub committed 2021-08-25 10:27:56 +00:00
1 parent 5a347adad2
commit a7e714aeb1
2 files changed
+20 -2

No files matched your search

+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);