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

refactor: events must emit addresses involved in the operation for better dApp indexing #186 #188

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

0xjoaovpsantos
Copy link
Contributor

@0xjoaovpsantos 0xjoaovpsantos commented Jan 26, 2024

This PR close #186

ToDo:

  • Renaming acceptee to allowed
  • Refactor events in the contract
  • Refactor events in the interface
  • Refactor events in the unit test

Copy link
Contributor

@0xneves 0xneves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect resolution of the issue, not a single comma out of place, congratulations @0xjoaovpsantos 🙌

@0xneves 0xneves merged commit 890d327 into blockful-io:main Feb 2, 2024
3 checks passed
Copy link
Contributor

@0xneves 0xneves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-opening this because of the msg.sender on the event

@@ -107,7 +109,7 @@ contract Swaplace is SwapFactory, ISwaplace, IERC165 {

_swaps[swapId].config = 0;

emit SwapCanceled(swapId);
emit SwapCanceled(swapId, _swaps[swapId].owner);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The msg.sender is the one that canceled the swap, so we should use msg.sender instead of reading from memory the swap owner.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here: #189

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.

refactor: events must emit addresses involved in the operation for better dApp indexing
2 participants