mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-29 04:05:21 +08:00
feat: getting rid of the implicit syntax
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
(if (< name u100000) u1000 u100))
|
||||
|
||||
(define-map name-map
|
||||
((name uint)) ((owner principal)))
|
||||
{ name: uint } { owner: principal })
|
||||
(define-map preorder-map
|
||||
((name-hash (buff 20)))
|
||||
((buyer principal) (paid uint)))
|
||||
{ name-hash: (buff 20) }
|
||||
{ buyer: principal, paid: uint })
|
||||
|
||||
(define-public (preorder
|
||||
(name-hash (buff 20))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
(define-map tokens ((account principal)) ((balance uint)))
|
||||
(define-map tokens { account: principal } { balance: uint })
|
||||
(define-private (get-balance (account principal))
|
||||
(default-to u0 (get balance (map-get? tokens (tuple (account account))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user