-
Notifications
You must be signed in to change notification settings - Fork 586
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
refactor(api!): replace legacy event asserts with current one #6070
Merged
crodriguezvega
merged 23 commits into
cosmos:main
from
akaladarshi:akaldarshi/event-testing-cleanup
Apr 16, 2024
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c424ec6
refactor(modules/core): use asset events instead of assert event legacy
akaladarshi d487038
refactor(modules/apps): use asset events instead of assert event legacy
akaladarshi f29b72f
refactor: remove asset events legacy and events map
akaladarshi 80d6242
Merge branch 'main' into akaldarshi/event-testing-cleanup
akaladarshi dd04e90
fix: linter errors
akaladarshi 7c79e60
Merge branch 'main' into akaldarshi/event-testing-cleanup
DimitrisJim 76894d0
Merge branch 'main' into akaldarshi/event-testing-cleanup
charleenfei 5181f1b
fix: linter errors
akaladarshi 4283f84
Merge branch 'main' into akaldarshi/event-testing-cleanup
DimitrisJim 4fca1ec
Merge branch 'main' into akaldarshi/event-testing-cleanup
akaladarshi da84fc0
Merge branch 'main' into akaldarshi/event-testing-cleanup
charleenfei 5dc0694
Merge branch 'main' into akaldarshi/event-testing-cleanup
akaladarshi 7f823f7
Merge branch 'main' into akaldarshi/event-testing-cleanup
crodriguezvega 11cd59f
Merge branch 'main' into akaldarshi/event-testing-cleanup
crodriguezvega f474442
fix linter errors
crodriguezvega 36d3599
add migration docs
crodriguezvega 7facb47
add changelog
crodriguezvega a549678
Merge branch 'main' into akaldarshi/event-testing-cleanup
akaladarshi fc9a30b
Merge branch 'main' into akaldarshi/event-testing-cleanup
crodriguezvega 223d0d1
Merge branch 'main' into akaldarshi/event-testing-cleanup
crodriguezvega 5bc2d44
Merge branch 'main' into akaldarshi/event-testing-cleanup
DimitrisJim 4cc9f13
Merge branch 'main' into akaldarshi/event-testing-cleanup
akaladarshi e848956
Merge branch 'main' into akaldarshi/event-testing-cleanup
crodriguezvega File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
expEvents
function has been modified to return[]abci.Event
instead of the previousmap[string]map[string]string
type. This change is part of the refactor to useabci.Event
for event creation and comparison, which is a more direct and type-safe approach to handling events in tests. The conversion ofsdk.Events
toabci.Events
using.ToABCIEvents()
at the end of the function is a necessary step to match the expected return type.However, there's a minor issue with the usage of
sdk.Events
within theexpEvents
function. Thesdk
package is not explicitly imported in the provided code snippet, which could lead to a compilation error if it's not already imported elsewhere in the file. It's important to ensure that all necessary packages are imported to avoid compilation issues.+ import sdk "github.com/cosmos/cosmos-sdk/types"