forked from use-ink/ink
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
Mapping
in ERC-721 Example (use-ink#1058)
* Switch `token_owner` to `Mapping` * Swap `owned_tokens_count` to `Mapping` * Swap `operator_approvals` to use `Mapping` * Remove some commented out code * Use `initialize_contract` in constructor * RustFmt * Use shorthand `Default` syntax * Stop initializing `Mapping` with `Default` This isn't necessary, the `initialize_contract` funtion takes care of properly initializing the `Mapping` * Remove false alarm about badly initialized `Mapping`s * Don't mutate in `map` * Use `()` value in approval `Mapping` * Remove unneeded `Result`
- Loading branch information
Showing
1 changed file
with
69 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters