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

Reserve Auctions (Final) #298

Merged
merged 57 commits into from
Jul 6, 2023
Merged

Reserve Auctions (Final) #298

merged 57 commits into from
Jul 6, 2023

Conversation

tasiov
Copy link
Contributor

@tasiov tasiov commented Jun 28, 2023

No description provided.

@tasiov tasiov marked this pull request as ready for review June 29, 2023 20:49
@tasiov tasiov changed the title Reserve Auctions Reserve Auctions (Final) Jun 29, 2023
@@ -79,113 +85,132 @@ pub fn execute_create_auction(
env: Env,
collection: Addr,
Copy link
Member

Choose a reason for hiding this comment

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

Since we have to pass around collection and token_id around together in many places, maybe we should have a struct called Nft that includes both in the common code package. Could possibly remove the too_many_arguments with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm yea you are right, let me see...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like I would have to change the code in a lot of places, almost every message. Maybe it's ok as is?

Copy link
Member

Choose a reason for hiding this comment

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

@tasiov Okay either way, but grouping related args can make code more readable and an Nft type is something that can be re-used in Marketplace and elsewhere.

@tasiov tasiov force-pushed the reserve-auctions-final branch from 55d7321 to dadb870 Compare July 1, 2023 18:32
Copy link
Member

@shanev shanev left a comment

Choose a reason for hiding this comment

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

Really nice idiomatic Rust!

@tasiov tasiov enabled auto-merge July 1, 2023 19:30
@tasiov tasiov requested a review from jhernandezb July 1, 2023 23:04
Copy link
Contributor

@yubrew yubrew left a comment

Choose a reason for hiding this comment

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

lgtm

@tasiov tasiov added this pull request to the merge queue Jul 6, 2023
Merged via the queue into main with commit f750c31 Jul 6, 2023
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.

3 participants