This commit is contained in:
Roman Nozdrin
2024-02-05 06:30:42 +00:00
parent 45f34701b0
commit cdfbb99fa0
4 changed files with 4 additions and 6 deletions

View File

@ -92,11 +92,11 @@ pub enum PreparationError {
DataSignatureCheckError(#[from] DataVerifierError),
/// AIR script size is bigger than the allowed limit.
#[error("air size: {0} bytes is bigger than a limit allowed: {1} bytes")]
#[error("air size: {0} bytes is bigger than the limit allowed: {1} bytes")]
AIRSizeLimitReached(usize, u64),
/// Current_data particle size is bigger than the allowed limit.
#[error("Current_data particle size: {0} bytes is bigger than a limit allowed: {1} bytes")]
#[error("Current_data particle size: {0} bytes is bigger than the limit allowed: {1} bytes")]
ParticleSizeLimitReached(usize, u64),
/// CallResult size is bigger than the allowed limit.

View File

@ -152,7 +152,7 @@ fn make_exec_ctx(
"CallResultsRepr.deserialize",
);
// This is a part of argument size limit check where we check the size of every call results.
// This is a part of argument size limit check where we check the size of every call result.
if call_results
.values()
.any(|call_result| call_result.result.len() > run_parameters.call_result_size_limit as usize)

View File

@ -146,7 +146,6 @@ impl AirRunner for ReleaseWasmAirRunner {
keypair: &KeyPair,
particle_id: String,
) -> Result<RawAVMOutcome, Box<dyn std::error::Error>> {
println!("running release wasm runner#####");
let current_peer_id =
override_current_peer_id.unwrap_or_else(|| self.current_peer_id.clone());

View File

@ -148,8 +148,7 @@ pub struct Network<R = DefaultAirRunner> {
// extencive test code changes
impl Network<DefaultAirRunner> {
pub fn empty() -> Rc<Self> {
let test_init_parameters = TestInitParameters::default();
Self::new(std::iter::empty::<PeerId>(), vec![], test_init_parameters)
Self::new(std::iter::empty::<PeerId>(), vec![], <_>::default())
}
}