From 69caab7697f2add814dc7ad965d7d79a2c1f3ac8 Mon Sep 17 00:00:00 2001 From: Benjamin <158306087+bengineer42@users.noreply.github.com> Date: Mon, 23 Sep 2024 07:59:35 -0400 Subject: [PATCH] chore: update LegacyMap to Map #224 (#226) * Issue Update Starknet Exercises `LegacyMap` to `Map` #224 * chore: tiny comment update --------- Co-authored-by: Shramee Srivastav --- exercises/starknet/basics/starknet3.cairo | 10 +++++++--- info.toml | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/exercises/starknet/basics/starknet3.cairo b/exercises/starknet/basics/starknet3.cairo index b210088c7..3fc450c20 100644 --- a/exercises/starknet/basics/starknet3.cairo +++ b/exercises/starknet/basics/starknet3.cairo @@ -20,12 +20,16 @@ trait IProgressTracker { mod ProgressTracker { use starknet::ContractAddress; use starknet::get_caller_address; // Required to use get_caller_address function - + use storage::StoragePointerReadAccess; + use storage::StoragePointerWriteAccess; + use storage::StoragePathEntry; + use storage::Map; + #[storage] struct Storage { contract_owner: ContractAddress, - // TODO: Set types for LegacyMap - progress: LegacyMap<> + // TODO: Set types for Map + progress: Map<> } #[constructor] diff --git a/info.toml b/info.toml index 92ec52a4a..574bdf890 100644 --- a/info.toml +++ b/info.toml @@ -586,7 +586,7 @@ name = "starknet4" path = "exercises/starknet/basics/starknet4.cairo" mode = "test" hint = """ -You can use LegacyMap for inventory. +You can use Map for inventory. """ [[exercises]]