-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
brady.ouren
committed
Dec 19, 2024
1 parent
4d6d022
commit 972c49c
Showing
3 changed files
with
91 additions
and
19 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
26 changes: 26 additions & 0 deletions
26
components/clarinet-format/tests/golden-intended/nested_map.clar
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(define-public (mng-name-register) | ||
(map-set name-properties | ||
{ | ||
name: name, namespace: namespace | ||
} | ||
{ | ||
registered-at: (some burn-block-height), | ||
imported-at: none, | ||
hashed-salted-fqn-preorder: (some hashed-salted-fqn), | ||
preordered-by: (some send-to), | ||
;; Updated this to be u0, so that renewals are handled through the namespace manager | ||
renewal-height: u0, | ||
stx-burn: u0, | ||
owner: send-to, | ||
} | ||
) | ||
{ | ||
topic: "new-name", | ||
owner: send-to, | ||
name: {name: name, namespace: namespace}, | ||
id: id-to-be-minted, | ||
properties: (map-get? name-properties {name: name, namespace: namespace}) | ||
} | ||
) | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(define-public (mng-name-register) | ||
(map-set name-properties | ||
{ | ||
name: name, namespace: namespace | ||
} | ||
{ | ||
registered-at: (some burn-block-height), | ||
imported-at: none, | ||
hashed-salted-fqn-preorder: (some hashed-salted-fqn), | ||
preordered-by: (some send-to), | ||
;; Updated this to be u0, so that renewals are handled through the namespace manager | ||
renewal-height: u0, | ||
stx-burn: u0, | ||
owner: send-to, | ||
} | ||
) | ||
{ | ||
topic: "new-name", | ||
owner: send-to, | ||
name: {name: name, namespace: namespace}, | ||
id: id-to-be-minted, | ||
properties: (map-get? name-properties {name: name, namespace: namespace}) | ||
} | ||
) | ||
) |