@@ -464,49 +464,49 @@ contract EFPListMinterTest is Test {
464464 bytes memory listStorageLocation = _makeListStorageLocation (address (listRecords), slot);
465465
466466 vm.expectEmit (true , false , false , true );
467- emit EFPListMinterV2.Minted (address (this ), listStorageLocation);
467+ emit EFPListMinterV2.Minted (' easyMint ' , address (this ), listStorageLocation);
468468
469469 minter.easyMint (listStorageLocation);
470470 }
471471
472- function test_EasyMintTo_EmitsMintedToEvent () public {
472+ function test_EasyMintTo_EmitsMintedEvent () public {
473473 uint256 slot = _getSlot (address (this ), 5678 );
474474 bytes memory listStorageLocation = _makeListStorageLocation (address (listRecords), slot);
475475 address recipient = address (0x456 );
476476
477477 vm.expectEmit (true , false , false , true );
478- emit EFPListMinterV2.MintedTo ( recipient, listStorageLocation);
478+ emit EFPListMinterV2.Minted ( ' easyMintTo ' , recipient, listStorageLocation);
479479
480480 minter.easyMintTo (recipient, listStorageLocation);
481481 }
482482
483- function test_MintPrimaryListNoMeta_EmitsMintedPrimaryListNoMetaEvent () public {
483+ function test_MintPrimaryListNoMeta_EmitsMintedEvent () public {
484484 uint256 slot = _getSlot (address (this ), 9012 );
485485 bytes memory listStorageLocation = _makeListStorageLocation (address (listRecords), slot);
486486
487487 vm.expectEmit (true , false , false , true );
488- emit EFPListMinterV2.MintedPrimaryListNoMeta ( address (this ), listStorageLocation);
488+ emit EFPListMinterV2.Minted ( ' mintPrimaryListNoMeta ' , address (this ), listStorageLocation);
489489
490490 minter.mintPrimaryListNoMeta (listStorageLocation);
491491 }
492492
493- function test_MintNoMeta_EmitsMintedNoMetaEvent () public {
493+ function test_MintNoMeta_EmitsMintedEvent () public {
494494 uint256 slot = _getSlot (address (this ), 3456 );
495495 bytes memory listStorageLocation = _makeListStorageLocation (address (listRecords), slot);
496496
497497 vm.expectEmit (true , false , false , true );
498- emit EFPListMinterV2.MintedNoMeta ( address (this ), listStorageLocation);
498+ emit EFPListMinterV2.Minted ( ' mintNoMeta ' , address (this ), listStorageLocation);
499499
500500 minter.mintNoMeta (listStorageLocation);
501501 }
502502
503- function test_MintToNoMeta_EmitsMintedToNoMetaEvent () public {
503+ function test_MintToNoMeta_EmitsMintedEvent () public {
504504 uint256 slot = _getSlot (address (this ), 7890 );
505505 bytes memory listStorageLocation = _makeListStorageLocation (address (listRecords), slot);
506506 address recipient = address (0x789 );
507507
508508 vm.expectEmit (true , false , false , true );
509- emit EFPListMinterV2.MintedToNoMeta ( recipient, listStorageLocation);
509+ emit EFPListMinterV2.Minted ( ' mintToNoMeta ' , recipient, listStorageLocation);
510510
511511 minter.mintToNoMeta (recipient, listStorageLocation);
512512 }
@@ -530,12 +530,12 @@ contract EFPListMinterTest is Test {
530530
531531 // Test easyMint with native location
532532 vm.expectEmit (true , false , false , true );
533- emit EFPListMinterV2.Minted (address (this ), nativeLocation);
533+ emit EFPListMinterV2.Minted (' easyMint ' , address (this ), nativeLocation);
534534 minter.easyMint (nativeLocation);
535535
536536 // Test easyMint with non-native location
537537 vm.expectEmit (true , false , false , true );
538- emit EFPListMinterV2.Minted (address (this ), nonNativeLocation);
538+ emit EFPListMinterV2.Minted (' easyMint ' , address (this ), nonNativeLocation);
539539 minter.easyMint (nonNativeLocation);
540540 }
541541
@@ -550,12 +550,53 @@ contract EFPListMinterTest is Test {
550550 bytes memory listStorageLocation = _makeListStorageLocation (address (listRecords), slot);
551551
552552 vm.expectEmit (true , false , false , true );
553- emit EFPListMinterV2.MintedTo ( recipients[i], listStorageLocation);
553+ emit EFPListMinterV2.Minted ( ' easyMintTo ' , recipients[i], listStorageLocation);
554554
555555 minter.easyMintTo (recipients[i], listStorageLocation);
556556 }
557557 }
558558
559+ function test_Events_AllMintingMethods () public {
560+ // Test all minting methods emit the correct function names
561+ uint256 baseSlot = 10000 ;
562+ address recipient = address (0xabc );
563+
564+ // Test easyMint
565+ uint256 slot1 = _getSlot (address (this ), uint96 (baseSlot + 1 ));
566+ bytes memory lsl1 = _makeListStorageLocation (address (listRecords), slot1);
567+ vm.expectEmit (true , false , false , true );
568+ emit EFPListMinterV2.Minted ('easyMint ' , address (this ), lsl1);
569+ minter.easyMint (lsl1);
570+
571+ // Test easyMintTo
572+ uint256 slot2 = _getSlot (address (this ), uint96 (baseSlot + 2 ));
573+ bytes memory lsl2 = _makeListStorageLocation (address (listRecords), slot2);
574+ vm.expectEmit (true , false , false , true );
575+ emit EFPListMinterV2.Minted ('easyMintTo ' , recipient, lsl2);
576+ minter.easyMintTo (recipient, lsl2);
577+
578+ // Test mintPrimaryListNoMeta
579+ uint256 slot3 = _getSlot (address (this ), uint96 (baseSlot + 3 ));
580+ bytes memory lsl3 = _makeListStorageLocation (address (listRecords), slot3);
581+ vm.expectEmit (true , false , false , true );
582+ emit EFPListMinterV2.Minted ('mintPrimaryListNoMeta ' , address (this ), lsl3);
583+ minter.mintPrimaryListNoMeta (lsl3);
584+
585+ // Test mintNoMeta
586+ uint256 slot4 = _getSlot (address (this ), uint96 (baseSlot + 4 ));
587+ bytes memory lsl4 = _makeListStorageLocation (address (listRecords), slot4);
588+ vm.expectEmit (true , false , false , true );
589+ emit EFPListMinterV2.Minted ('mintNoMeta ' , address (this ), lsl4);
590+ minter.mintNoMeta (lsl4);
591+
592+ // Test mintToNoMeta
593+ uint256 slot5 = _getSlot (address (this ), uint96 (baseSlot + 5 ));
594+ bytes memory lsl5 = _makeListStorageLocation (address (listRecords), slot5);
595+ vm.expectEmit (true , false , false , true );
596+ emit EFPListMinterV2.Minted ('mintToNoMeta ' , recipient, lsl5);
597+ minter.mintToNoMeta (recipient, lsl5);
598+ }
599+
559600 function test_Events_CorrectEventDataEncoding () public {
560601 uint256 slot = _getSlot (address (this ), 4321 );
561602 bytes memory listStorageLocation = _makeListStorageLocation (address (listRecords), slot);
@@ -575,13 +616,14 @@ contract EFPListMinterTest is Test {
575616 }
576617
577618 // Verify event signature
578- assertEq (mintedLog.topics[0 ], keccak256 ("Minted(address,bytes) " ));
619+ assertEq (mintedLog.topics[0 ], keccak256 ("Minted(string, address,bytes) " ));
579620
580621 // Verify indexed parameter (address)
581622 assertEq (mintedLog.topics[1 ], bytes32 (uint256 (uint160 (address (this )))));
582623
583- // Verify non-indexed parameter (bytes data)
584- bytes memory decodedData = abi.decode (mintedLog.data, (bytes ));
624+ // Verify non-indexed parameters (string method, bytes data)
625+ (string memory method , bytes memory decodedData ) = abi.decode (mintedLog.data, (string , bytes ));
626+ assertEq (method, 'easyMint ' );
585627 assertEq (decodedData, listStorageLocation);
586628 }
587629}
0 commit comments