fix: comments fix 1

This commit is contained in:
Oleksandr Pravdyvyi
2025-07-24 16:05:27 +03:00
parent 95fec47897
commit 41b65521f9
6 changed files with 42 additions and 39 deletions
+3 -3
View File
@@ -5,9 +5,9 @@ use anyhow::Result;
use block_store::NodeBlockStore;
use common::{
block::Block,
execution_input::PublicNativeTokenSend,
merkle_tree_public::merkle_tree::{PublicTransactionMerkleTree, UTXOCommitmentsMerkleTree},
nullifier::UTXONullifier,
public_transfer_receipts::PublicNativeTokenSend,
utxo_commitment::UTXOCommitment,
};
use k256::AffinePoint;
@@ -166,10 +166,10 @@ impl NodeChainStore {
if let Ok(transfer) = native_transfer {
if let Some(acc_sender) = self.acc_map.get_mut(&transfer.from) {
//Can panic, we depend on sequencer maintaining chain consistency here
acc_sender.balance -= transfer.moved_balance;
acc_sender.balance -= transfer.balance_to_move;
if let Some(acc_rec) = self.acc_map.get_mut(&transfer.to) {
acc_rec.balance += transfer.moved_balance;
acc_rec.balance += transfer.balance_to_move;
}
}
}
+3 -3
View File
@@ -4,7 +4,7 @@ use std::sync::{
};
use common::{
public_transfer_receipts::PublicNativeTokenSend, transaction::Transaction, ExecutionFailureKind,
execution_input::PublicNativeTokenSend, transaction::Transaction, ExecutionFailureKind,
};
use accounts::{
@@ -955,7 +955,7 @@ impl NodeCore {
&self,
from: AccountAddress,
to: AccountAddress,
moved_balance: u64,
balance_to_move: u64,
) -> Result<SendTxResponse, ExecutionFailureKind> {
let tx_roots = self.get_roots().await;
@@ -982,7 +982,7 @@ impl NodeCore {
serde_json::to_vec(&PublicNativeTokenSend {
from,
to,
moved_balance,
balance_to_move,
})
.unwrap(),
commitment,