-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
…o sg-marketplace-common
@@ -79,113 +85,132 @@ pub fn execute_create_auction( | |||
env: Env, | |||
collection: Addr, |
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.
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.
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.
Hmm yea you are right, let me see...
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.
It looks like I would have to change the code in a lot of places, almost every message. Maybe it's ok as is?
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.
@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.
55d7321
to
dadb870
Compare
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.
Really nice idiomatic Rust!
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.
lgtm
No description provided.