Skip to content

Commit

Permalink
removed undo duplicate function
Browse files Browse the repository at this point in the history
  • Loading branch information
rckprtr committed Sep 12, 2021
1 parent 119d180 commit 59f964e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions src/ic_loot_rs/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@ impl AddressBook {
return false;
}

pub fn undo_transfer2(&mut self, user_id: Principal, token_id: u64) -> bool {
if let Some(token_owner) = self.tokens.get(&token_id) {
if &user_id == token_owner {
ic_cdk::println!("qwe12qw21wq {:?}", token_owner);
self.tokens.insert(token_id, ic_cdk::caller());
return true;
}
}
return false;
}

pub fn transfer_to(&mut self, user: Principal, token_id: u64) -> bool {
if let Some(token_owner) = self.tokens.get(&token_id) {
if token_owner == &ic_cdk::caller() {
Expand Down
1 change: 1 addition & 0 deletions src/ic_loot_rs/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ fn export_candid() -> String {
return r#"
// http://icdrip.io
// STAGING ENVIRONMENT
// ██▓ ▄████▄ ▓█████▄ ██▀███ ██▓ ██▓███
// ▓██▒▒██▀ ▀█ ▒██▀ ██▌▓██ ▒ ██▒▓██▒▓██░ ██▒
Expand Down

0 comments on commit 59f964e

Please sign in to comment.