Merge branch 'main' into Pravdyvy/structural-improvements

This commit is contained in:
Oleksandr Pravdyvyi 2025-08-15 14:28:31 +03:00
commit 1cdf058938
No known key found for this signature in database
GPG Key ID: 9F8955C63C443871
3 changed files with 3 additions and 3 deletions

0
ci_scripts/lint-ubuntu.sh Normal file → Executable file
View File

View File

@ -2,11 +2,11 @@ use nssa_core::{
account::Nonce, account::Nonce,
program::{InstructionData, ProgramId}, program::{InstructionData, ProgramId},
}; };
use serde::{Deserialize, Serialize}; use serde::Serialize;
use crate::{Address, error::NssaError, program::Program}; use crate::{Address, error::NssaError, program::Program};
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub struct Message { pub struct Message {
pub(crate) program_id: ProgramId, pub(crate) program_id: ProgramId,
pub(crate) addresses: Vec<Address>, pub(crate) addresses: Vec<Address>,

View File

@ -15,7 +15,7 @@ impl PublicKey {
Self(value) Self(value)
} }
pub fn try_new(value: [u8; 32]) -> Result<Self, NssaError> { pub(super) fn try_new(value: [u8; 32]) -> Result<Self, NssaError> {
// Check point is valid // Check point is valid
let _ = secp256k1::XOnlyPublicKey::from_byte_array(value) let _ = secp256k1::XOnlyPublicKey::from_byte_array(value)
.map_err(|_| NssaError::InvalidPublicKey)?; .map_err(|_| NssaError::InvalidPublicKey)?;