Skip to content

Commit

Permalink
room-contract builds locally again
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 10, 2024
1 parent 6c66763 commit f93b51e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions contracts/room-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -20,5 +19,3 @@ opt-level = 'z'
panic = 'abort'
strip = true

# Internal dependencies
freenet-stdlib = { path = "../../stdlib/rust", features = ["net"] }
2 changes: 1 addition & 1 deletion contracts/room-contract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl ContractInterface for Contract {
let delta = from_reader::<ChatRoomStateV1Delta, &[u8]>(d.as_ref())
.map_err(|e| ContractError::Deser(e.to_string()))?;
chat_state
.apply_delta(&chat_state.clone(), &parameters, &delta)
.apply_delta(&chat_state.clone(), &parameters, &Some(delta))
.map_err(|_| ContractError::InvalidUpdate)?;
}
UpdateData::RelatedState {
Expand Down

0 comments on commit f93b51e

Please sign in to comment.