Skip to content

Commit

Permalink
fix: example 04-arrays with newest 1.4.2 Tact compiler
Browse files Browse the repository at this point in the history
"map" became a reserved keyword

Fixes #43
  • Loading branch information
i582 committed Dec 2, 2024
1 parent fcb2eac commit 8d868f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/04-arrays.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h2 id="using-the-comment-field">Using the comment field</h2>
return self.arrLength;
}

get fun map(): map<Int, Int> {
get fun mapping(): map<Int, Int> {
return self.arr;
}
}</pre></div></div></div></div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(examples)/04-arrays/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
length: async () => {
return await contract.getLength();
},
map: async () => {
mapping: async () => {
return await contract.getMap();
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(examples)/04-arrays/contract.tact
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ contract Arrays with Deployable {
return self.arrLength;
}

get fun map(): map<Int, Int> {
get fun mapping(): map<Int, Int> {
return self.arr;
}
}

0 comments on commit 8d868f3

Please sign in to comment.