Skip to content

Commit

Permalink
fix: remove management-related methods
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Sep 19, 2024
1 parent 56ae647 commit 189720e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pop-api/examples/fungibles/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,5 @@ mod fungibles {
.emit_event(Created { id, creator: contract.env().account_id(), admin });
Ok(contract)
}

#[ink(message)]
pub fn set_metadata(
&self,
name: Vec<u8>,
symbol: Vec<u8>,
decimals: u8,
) -> PSP22Result<()> {
api::set_metadata(self.id, name, symbol, decimals).map_err(PSP22Error::from)
}

#[ink(message)]
pub fn token_exists(&self) -> PSP22Result<bool> {
api::token_exists(self.id).map_err(PSP22Error::from)
}
}
}

0 comments on commit 189720e

Please sign in to comment.