We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b356cd7 commit 2c687e0Copy full SHA for 2c687e0
modules/epochs_state/src/state.rs
@@ -346,6 +346,22 @@ mod tests {
346
);
347
}
348
349
+ #[test]
350
+ fn handle_mint_without_issuer() {
351
+ let mut state = State::new(&GenesisValues::mainnet());
352
+ let mut block = make_block(100);
353
+ state.handle_mint(&block, None);
354
+ block.number += 1;
355
356
+
357
+ assert_eq!(state.epoch_blocks, 2);
358
+ assert_eq!(state.blocks_minted.len(), 0);
359
+ assert_eq!(
360
+ state.blocks_minted.get(&keyhash_224(b"issuer").into()),
361
+ None
362
+ );
363
+ }
364
365
#[test]
366
fn handle_mint_multiple_issuer_records_counts() {
367
let mut state = State::new(&GenesisValues::mainnet());
0 commit comments