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

Insert missing asset IDs for ActionDutchAuctionSchedule #1034

Merged
merged 1 commit into from
May 4, 2024

Conversation

jessepinho
Copy link
Contributor

@jessepinho jessepinho commented May 4, 2024

Before

image

(Note that the input metadata was present because the TXP had been filled with that metadata when processing the "Spend" action. However, we don't want to rely on that.)

After

image

Punting to future PRs

  • Add the same handling for *Withdraw/*End actions. Punting for now since that flow isn't yet supported on web.

Comment on lines +345 to +351
ActionView::ActionDutchAuctionSchedule(ActionDutchAuctionScheduleView {
action,
..
}) => {
asset_ids.insert(action.description.output_id);
asset_ids.insert(action.description.input.asset_id);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a part of a match statement inside transaction_info_inner, in which we iterate over each action in the transaction, adding relevant pieces of information to the transaction perspective that will be needed to generate the transaction view. In this case, we need to add the asset IDs used for the auction to asset_ids, so that later on in this function, we can fetch those assets' metadata.

@jessepinho jessepinho marked this pull request as ready for review May 4, 2024 05:27
@jessepinho jessepinho merged commit 15c69bf into main May 4, 2024
6 checks passed
@jessepinho jessepinho deleted the jessepinho/fix-auction-txp branch May 4, 2024 06:06
@TalDerei TalDerei restored the jessepinho/fix-auction-txp branch May 14, 2024 16:27
@TalDerei TalDerei deleted the jessepinho/fix-auction-txp branch May 14, 2024 16:30
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