Skip to content

Commit

Permalink
removed answers to tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseMedova committed May 9, 2024
1 parent e9edc32 commit 571e470
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ extern "C" fn handle() {
}
TmgAction::Age => {
let age = exec::block_timestamp() - tmg.date_of_birth;
msg::reply(TmgReply::Age(age), 0).expect("Error in a reply `TmgEvent::Age`");
// ⚠️ TODO: Send a reply about the Tamagotchi age
// Hint: the message payload must be TmgReply::Age(age)
}
Expand All @@ -121,8 +120,7 @@ extern "C" fn handle() {

#[no_mangle]
unsafe extern "C" fn init() {
let name: String = msg::load().expect("Failed to decode Tamagotchi name");
// // ⚠️ TODO: Change the tamagotchi name
// ⚠️ TODO: Change the tamagotchi name
// let name = String::from("Best-Tamagotchi");

let current_block = exec::block_timestamp();
Expand Down

0 comments on commit 571e470

Please sign in to comment.