mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
money/token_mint: Remove spurious comment from TokenMint
This commit is contained in:
@@ -88,11 +88,9 @@ pub(crate) fn money_token_mint_process_instruction_v1(
|
||||
let self_ = &calls[call_idx].data;
|
||||
let params: MoneyTokenMintParamsV1 = deserialize(&self_.data[1..])?;
|
||||
|
||||
// We have to check if the token mint is frozen, and if by some chance
|
||||
// the minted coin has existed already.
|
||||
// Check that the coin from the output hasn't existed before
|
||||
let coins_db = wasm::db::db_lookup(cid, MONEY_CONTRACT_COINS_TREE)?;
|
||||
|
||||
// Check that the coin from the output hasn't existed before
|
||||
if wasm::db::db_contains_key(coins_db, &serialize(¶ms.coin))? {
|
||||
msg!("[TokenMintV1] Error: Duplicate coin in output");
|
||||
return Err(MoneyError::DuplicateCoin.into())
|
||||
|
||||
@@ -32,10 +32,6 @@ use darkfi_serial::async_trait;
|
||||
use super::poseidon_hash;
|
||||
|
||||
lazy_static! {
|
||||
// Is this even needed? Not used elsewhere except here.
|
||||
/// Derivation prefix for `TokenId`
|
||||
pub static ref TOKEN_ID_PREFIX: pallas::Base = pallas::Base::from(69);
|
||||
|
||||
/// Native DARK token ID.
|
||||
/// It does not correspond to any real commitment since we only rely on this value as
|
||||
/// a constant.
|
||||
|
||||
Reference in New Issue
Block a user