diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 62db97dc..dfb635e5 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,8 +15,8 @@ - + diff --git a/contracts/room-contract/Cargo.toml b/contracts/room-contract/Cargo.toml index 7a3a5032..0f735ec3 100644 --- a/contracts/room-contract/Cargo.toml +++ b/contracts/room-contract/Cargo.toml @@ -5,11 +5,10 @@ edition = "2021" [dependencies] common.workspace = true -serde.workspace = true ciborium.workspace = true -itertools.workspace = true -getrandom = { workspace = true, features = ["js"] } +getrandom.workspace = true freenet-scaffold = { path = "../../scaffold" } +freenet-stdlib = { path = "../../stdlib/rust", features = ["contract"] } [lib] crate-type = ["cdylib"] @@ -20,5 +19,3 @@ opt-level = 'z' panic = 'abort' strip = true -# Internal dependencies -freenet-stdlib = { path = "../../stdlib/rust", features = ["net"] } diff --git a/contracts/room-contract/src/lib.rs b/contracts/room-contract/src/lib.rs index 17b3093d..e3d4a32c 100644 --- a/contracts/room-contract/src/lib.rs +++ b/contracts/room-contract/src/lib.rs @@ -64,7 +64,7 @@ impl ContractInterface for Contract { let delta = from_reader::(d.as_ref()) .map_err(|e| ContractError::Deser(e.to_string()))?; chat_state - .apply_delta(&chat_state.clone(), ¶meters, &delta) + .apply_delta(&chat_state.clone(), ¶meters, &Some(delta)) .map_err(|_| ContractError::InvalidUpdate)?; } UpdateData::RelatedState {