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)] /// Helper struct for account (de-)serialization
/// Helperstruct for account serialization #[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AccountInitialData { pub struct AccountInitialData {
pub account_id: AccountId, pub account_id: AccountId,
pub balance: u128, pub balance: u128,
} }
#[derive(Debug, Serialize, Deserialize, Clone)] /// Helper struct to (de-)serialize initial commitments
/// Helperstruct to initialize commitments #[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CommitmentsInitialData { pub struct CommitmentsInitialData {
pub npk: nssa_core::NullifierPublicKey, pub npk: nssa_core::NullifierPublicKey,
pub account: nssa_core::account::Account, pub account: nssa_core::account::Account,

View File

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