Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Mint with External URI Event and Adding Corresponding Tests #130

Merged
merged 11 commits into from
Oct 31, 2023

Conversation

asiniscalchi
Copy link
Member

@asiniscalchi asiniscalchi commented Oct 27, 2023

PR Type:

Bug fix, Tests


PR Description:

This PR addresses a bug in the minting process with an external URI event. It modifies the event logging mechanism and adds a new test case to ensure the correct behavior of the minting process. The changes are primarily in the lib.rs and tests.rs files of the ownership-chain/precompile/laos-evolution module.


PR Main Files Walkthrough:

files:

ownership-chain/precompile/laos-evolution/src/lib.rs: The changes in this file mainly revolve around the minting process with an external URI. The logging mechanism for the minting event has been modified. Instead of using a Log struct, a LogsBuilder is used to record the event. This change provides a more flexible and comprehensive way to log events. Also, some unused imports have been removed.
ownership-chain/precompile/laos-evolution/src/tests.rs: A new test case mint_with_external_uri_should_generate_log has been added. This test ensures that the minting process with an external URI generates the correct log. The test uses a mock to simulate the minting process and checks the resulting log for correctness.

@asiniscalchi asiniscalchi linked an issue Oct 30, 2023 that may be closed by this pull request
@asiniscalchi
Copy link
Member Author

/describe

@github-actions github-actions bot changed the title Hotfix/fix mint with external uri event Fixing Mint with External URI Event and Adding Corresponding Tests Oct 30, 2023
@asiniscalchi asiniscalchi marked this pull request as ready for review October 30, 2023 14:40
@asiniscalchi asiniscalchi merged commit aefc48b into main Oct 31, 2023
6 checks passed
@asiniscalchi asiniscalchi deleted the hotfix/fix_mint_with_external_uri_event branch October 31, 2023 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EVM events can be obtained via RPC-EVM! (integration test?)
2 participants