Skip to content

Commit ed5d6bd

Browse files
authored
Merge pull request #4476 from OffchainLabs/pmikolajczyk/nit-4623-non-mandatory-field
Handle missing max_user_wasm_size
2 parents 54a9959 + 3a5dd4e commit ed5d6bd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog/pmikolajczyk-nit-4623.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
### Internal
2+
- Make `ValidationInput.max_user_wasm_size` field non-mandatory

crates/validation/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub struct ValidationInput {
9999
#[serde(with = "As::<HashMap<DisplayFromStr, HashMap<DisplayFromStr, Base64>>>")]
100100
pub user_wasms: HashMap<String, HashMap<Bytes32, UserWasm>>,
101101
pub debug_chain: bool,
102-
#[serde(rename = "max-user-wasmSize")]
102+
#[serde(rename = "max-user-wasmSize", default)]
103103
pub max_user_wasm_size: u64,
104104
}
105105

0 commit comments

Comments
 (0)