From 1af4eb2a0ccdbd0222bf1c99691e9ca98a3e2e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Mon, 20 Nov 2023 12:54:20 +0100 Subject: [PATCH] fixup! Merge branch 'tiago/rebased-validate-tx-bytes-len' (#2187) --- apps/src/lib/node/ledger/shell/mod.rs | 3 ++- apps/src/lib/node/ledger/shell/process_proposal.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/src/lib/node/ledger/shell/mod.rs b/apps/src/lib/node/ledger/shell/mod.rs index cdc2965644..4fda8481a3 100644 --- a/apps/src/lib/node/ledger/shell/mod.rs +++ b/apps/src/lib/node/ledger/shell/mod.rs @@ -2990,7 +2990,8 @@ mod shell_tests { None, )))); wrapper.header.chain_id = shell.chain_id.clone(); - wrapper.set_code(Code::new("wasm_code".as_bytes().to_owned())); + wrapper + .set_code(Code::new("wasm_code".as_bytes().to_owned(), None)); wrapper.set_data(Data::new(vec![0; size as usize])); wrapper.add_section(Section::Signature(Signature::new( wrapper.sechashes(), diff --git a/apps/src/lib/node/ledger/shell/process_proposal.rs b/apps/src/lib/node/ledger/shell/process_proposal.rs index d5fea1ffe7..9f19cf2d66 100644 --- a/apps/src/lib/node/ledger/shell/process_proposal.rs +++ b/apps/src/lib/node/ledger/shell/process_proposal.rs @@ -2083,7 +2083,8 @@ mod test_process_proposal { None, )))); wrapper.header.chain_id = shell.chain_id.clone(); - wrapper.set_code(Code::new("wasm_code".as_bytes().to_owned())); + wrapper + .set_code(Code::new("wasm_code".as_bytes().to_owned(), None)); wrapper.set_data(Data::new(vec![0; size as usize])); wrapper.add_section(Section::Signature(Signature::new( wrapper.sechashes(),