From f53204737f98567e19f05adc84c22236baca84aa Mon Sep 17 00:00:00 2001 From: sternbergm Date: Fri, 20 Oct 2023 11:06:58 -0400 Subject: [PATCH] changed the loans map key to function properly --- src/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tutorial.md b/src/tutorial.md index fdc88cc..db3070a 100644 --- a/src/tutorial.md +++ b/src/tutorial.md @@ -643,7 +643,7 @@ First we're going to set up the data variables we need. ```clojure ;; Define the contract's data variables (define-map deposits { owner: principal } { amount: uint }) -(define-map loans principal { amount: uint, last-interaction-block: uint }) +(define-map loans {owner : principal} { amount: uint, last-interaction-block: uint }) (define-data-var total-deposits uint u0) (define-data-var total-loans uint u0)