v1.0.3 - Integration Test Fixes and Mock Implementations
This release focuses on fixing integration tests and enhancing mock implementations to ensure robust and reliable testing.
Key Features:
- Integration Test Fixes:
- Corrected the usage of the fromAddress variable in assertions.
- Fixed the WithBody call to use the correct type.
- Ensured that the signed transaction is properly included in the mock block.
- Mock Implementations:
- Added a mock NFT detector implementation.
- Updated mock Ethereum client to include necessary function fields.
- Ensured mock client functions are properly set in tests.
Detailed Changes:
- Integration Test Enhancements:
- From Address Assertion: Ensured that the fromAddress variable is used in assertions to validate the sender's address.
- Correct WithBody Call: Fixed the WithBody call to use the correct types.Body type, ensuring proper block creation in tests.
- Mock Transaction: Included a signed transaction in the mock block to trigger email notifications.
- Mock NFT Detector:
- Implementation: Added a mock NFT detector with a customizable IsNFTTransactionFunc function.
- Usage in Tests: Updated integration tests to use the mock NFT detector.
- Mock Ethereum Client:
- Function Fields: Added necessary function fields (BlockByHashFunc, NetworkIDFunc, etc.) to the mock Ethereum client.
- Setter Methods: Provided setter methods to update mock functions in tests.