-
Notifications
You must be signed in to change notification settings - Fork 45
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
Open Edition minter update & tests #629
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #629 +/- ##
==========================================
+ Coverage 60.07% 60.10% +0.03%
==========================================
Files 83 83
Lines 4518 4582 +64
==========================================
+ Hits 2714 2754 +40
- Misses 1804 1828 +24 ☔ View full report in Codecov by Sentry. |
Cosm-Orc Gas Usage
Raw Report for 451c6ac
|
@@ -193,10 +200,20 @@ pub fn execute_purge( | |||
info: MessageInfo, | |||
) -> Result<Response, ContractError> { | |||
nonpayable(&info)?; | |||
// Check if mint has ended | |||
// check if sold out (optional) | |||
let mintable_num_tokens = MINTABLE_NUM_TOKENS.may_load(deps.storage)?; |
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.
so what if it's ended but not sold out?
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.
mintable_num_tokens
is only Some when there is no end time defined (as per instantiation), so the minting cannot be time limited in this case.
@@ -11,8 +11,9 @@ pub struct ConfigExtension { | |||
pub payment_address: Option<Addr>, | |||
pub nft_data: NftData, | |||
pub start_time: Timestamp, | |||
pub end_time: Timestamp, | |||
pub end_time: Option<Timestamp>, |
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.
curious if this will cause errors on read
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.
The contract will be used for new open edition collections onwards without any migrations. It could cause indexing errors though if not accounted for.
Allows the user to set a limit for the number of tokens instead of a limit for minting end time.