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

CAP-0046-06: Fix events emitted #1564

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Oct 27, 2024

What

Change the events emitted by Stellar Asset Contracts to match the implementation.

Why

If you look at the code of what events are emitted, they don't currently match the specification, with data values incorrect, as well as parameters.

https://github.com/stellar/rs-soroban-env/blob/v21.2.2/soroban-env-host/src/builtin_contracts/stellar_asset_contract/event.rs#L56-L71

Reviewing

When reviewing, please thoroughly check the changes with the code. This is the second time we're correcting the events in the CAP with the implementation, having already attempted to get it aligned at least one other time since implementation, and these docs should be reliable, so it's worth two people thoroughly confirming.

cc @stellar/contract-committers

@leighmcculloch leighmcculloch marked this pull request as ready for review October 27, 2024 22:54
@leighmcculloch leighmcculloch merged commit 7b1ff42 into master Oct 28, 2024
3 checks passed
@leighmcculloch leighmcculloch deleted the leighmcculloch-patch-3 branch October 28, 2024 21:32
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.

2 participants