-
Notifications
You must be signed in to change notification settings - Fork 0
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
Collections: initial impementation #4
Conversation
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.
A suggestion for better clarity
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(address from, address to, uint256 startTokenId, uint256 quantity) internal virtual {} this function is used as a reassurance in |
// Returns the balance of the `account` for the token `id` | ||
#[allow(dead_code)] | ||
pub fn balance_of(env: Env, account: Address, id: u64) -> Result<u64, ContractError> { | ||
Ok(get_balance_of(&env, &account, id))? |
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.
Ok(get_balance_of(&env, &account, id))? | |
get_balance_of(&env, &account, id) |
#[contractimpl] | ||
impl Collections { | ||
// takes an address and uses it as an administrator |
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.
Implement update/upgrade entrypoint.
No description provided.