Skip to content

Commit

Permalink
perf: directly provide payload to wasm triggers and smart contracts
Browse files Browse the repository at this point in the history
Signed-off-by: Marin Veršić <[email protected]>
  • Loading branch information
mversic committed Nov 4, 2024
1 parent d35a826 commit 358d50f
Show file tree
Hide file tree
Showing 17 changed files with 136 additions and 260 deletions.
2 changes: 1 addition & 1 deletion crates/iroha/src/secrecy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl SecretString {
}
}

const REDACTED: &'static str = "[REDACTED]";
const REDACTED: &str = "[REDACTED]";

impl Serialize for SecretString {
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
Expand Down
2 changes: 1 addition & 1 deletion crates/iroha/tests/events/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async fn wasm_execution_should_produce_events() -> Result<()> {
{wasm_template}
;; Function which starts the smartcontract execution
(func (export "{main_fn_name}") (param)
(func (export "{main_fn_name}") (param i32)
{isi_calls}))
"#,
main_fn_name = "_iroha_smart_contract_main",
Expand Down
2 changes: 1 addition & 1 deletion crates/iroha_config/tests/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ fn self_is_presented_in_trusted_peers() {
.value()
.clone()
.into_non_empty_vec()
.contains(&config.common.peer.id()));
.contains(config.common.peer.id()));
}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions crates/iroha_core/src/smartcontracts/isi/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ pub mod query {
Ok(state_ro
.world()
.peers()
.cloned()
.filter(move |peer| filter.applies(peer)))
.filter(move |peer| filter.applies(peer))
.cloned())
}
}

Expand Down
Loading

0 comments on commit 358d50f

Please sign in to comment.