Przeglądaj źródła

contract/consensus: Fix variable typo.

parazyd 3 lat temu
rodzic
commit
4a956c65b7

+ 2 - 2
src/contract/consensus/src/entrypoint/stake_v1.rs

@@ -91,7 +91,7 @@ pub(crate) fn consensus_stake_process_instruction_v1(
 
 
     // Access the necessary databases where there is information to
     // Access the necessary databases where there is information to
     // validate this state transition.
     // validate this state transition.
-    let consenus_coins_db = db_lookup(cid, CONSENSUS_CONTRACT_COINS_TREE)?;
+    let consensus_coins_db = db_lookup(cid, CONSENSUS_CONTRACT_COINS_TREE)?;
     let money_nullifiers_db = db_lookup(*MONEY_CONTRACT_ID, MONEY_CONTRACT_NULLIFIERS_TREE)?;
     let money_nullifiers_db = db_lookup(*MONEY_CONTRACT_ID, MONEY_CONTRACT_NULLIFIERS_TREE)?;
     let money_coin_roots_db = db_lookup(*MONEY_CONTRACT_ID, MONEY_CONTRACT_COIN_ROOTS_TREE)?;
     let money_coin_roots_db = db_lookup(*MONEY_CONTRACT_ID, MONEY_CONTRACT_COIN_ROOTS_TREE)?;
 
 
@@ -143,7 +143,7 @@ pub(crate) fn consensus_stake_process_instruction_v1(
 
 
     // Newly created coin for this call is in the output. Here we gather it,
     // Newly created coin for this call is in the output. Here we gather it,
     // and we also check that it hasn't existed before.
     // and we also check that it hasn't existed before.
-    if db_contains_key(consenus_coins_db, &serialize(&output.coin))? {
+    if db_contains_key(consensus_coins_db, &serialize(&output.coin))? {
         msg!("[ConsensusStakeV1] Error: Duplicate coin found in output");
         msg!("[ConsensusStakeV1] Error: Duplicate coin found in output");
         return Err(MoneyError::DuplicateCoin.into())
         return Err(MoneyError::DuplicateCoin.into())
     }
     }