mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
Migrate some Pallets to Named Events (#5423)
* auctions * claims * registrar * Update purchase.rs * crowdloan * slots * comma
This commit is contained in:
@@ -432,10 +432,17 @@ fn basic_end_to_end_works() {
|
||||
// Auction ends at block 110 + offset
|
||||
run_to_block(109 + offset);
|
||||
assert!(contains_event(
|
||||
crowdloan::Event::<Test>::HandleBidResult(ParaId::from(para_2), Ok(())).into()
|
||||
crowdloan::Event::<Test>::HandleBidResult {
|
||||
para_id: ParaId::from(para_2),
|
||||
result: Ok(())
|
||||
}
|
||||
.into()
|
||||
));
|
||||
run_to_block(110 + offset);
|
||||
assert_eq!(last_event(), auctions::Event::<Test>::AuctionClosed(1).into());
|
||||
assert_eq!(
|
||||
last_event(),
|
||||
auctions::Event::<Test>::AuctionClosed { auction_index: 1 }.into()
|
||||
);
|
||||
|
||||
// Paras should have won slots
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user