Closed sternbergm closed 10 months ago
the documentation indicates the map should be defined as this:
(define-map loans principal { amount: uint, last-interaction-block: uint })
in reality, we actually need this:
(define-map loans {owner : principal} { amount: uint, last-interaction-block: uint })
otherwise, we face issues in the rest of the code, where we are unable to use map-get? on the loans map.
the documentation indicates the map should be defined as this:
(define-map loans principal { amount: uint, last-interaction-block: uint })
in reality, we actually need this:
(define-map loans {owner : principal} { amount: uint, last-interaction-block: uint })
otherwise, we face issues in the rest of the code, where we are unable to use map-get? on the loans map.