mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 13:51:11 +00:00
Add field names to pallet Event variants (#9993)
* convert pallet-assets events to struct types * updated events of a couple pallets * updated pallet event field names * update pallet event field names * updated events in test files * cargo fmt * minorfixes * fix assertion error * minor fix * formatting fix * fmt
This commit is contained in:
@@ -500,7 +500,12 @@ fn transferring_less_than_one_unit_is_fine() {
|
||||
assert_ok!(Assets::mint(Origin::signed(1), 0, 1, 100));
|
||||
assert_eq!(Assets::balance(0, 1), 100);
|
||||
assert_ok!(Assets::transfer(Origin::signed(1), 0, 2, 0));
|
||||
System::assert_last_event(mock::Event::Assets(crate::Event::Transferred(0, 1, 2, 0)));
|
||||
System::assert_last_event(mock::Event::Assets(crate::Event::Transferred {
|
||||
asset_id: 0,
|
||||
from: 1,
|
||||
to: 2,
|
||||
amount: 0,
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user