We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In addition to tokenid, we need to add a lifetime field to indicate the lifetime of the token.
tokenid
lifetime
The field lifetime use the BlockNumber type to indicate maximum height it can survive.
BlockNumber
Use the on_finalize method to listen for block number updates and then automatically destroy expired tokens.
on_finalize
The text was updated successfully, but these errors were encountered:
implement NFT lifetime #2
70a98e6
8187d78
No branches or pull requests
time-dependent feature
In addition to
tokenid
, we need to add alifetime
field to indicate the lifetime of the token.The field
lifetime
use theBlockNumber
type to indicate maximum height it can survive.Use the
on_finalize
method to listen for block number updates and then automatically destroy expired tokens.The text was updated successfully, but these errors were encountered: