Apply suggestions from code review

Docstrings updated, derives sorted.

Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
This commit is contained in:
Pravdyvy 2026-02-23 10:11:40 +02:00 committed by GitHub
parent 683722edbd
commit 801f2c46c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -109,15 +109,15 @@ impl From<Block> for HashableBlockData {
}
}
#[derive(Debug, Serialize, Deserialize, Clone)]
/// Helperstruct for account serialization
/// Helper struct for account (de-)serialization
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AccountInitialData {
pub account_id: AccountId,
pub balance: u128,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
/// Helperstruct to initialize commitments
/// Helper struct to (de-)serialize initial commitments
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CommitmentsInitialData {
pub npk: nssa_core::NullifierPublicKey,
pub account: nssa_core::account::Account,

View File

@ -61,7 +61,7 @@ pub enum TxKind {
ProgramDeployment,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum TransactionMalformationError {
InvalidSignature,
FailedToDecode { tx: HashType },