Skip to content

Commit a7bb27e

Browse files
authored
chore: bump version to 0.1.1 (#1456)
1 parent 2e1b946 commit a7bb27e

File tree

10 files changed

+202
-78
lines changed

10 files changed

+202
-78
lines changed

Cargo.lock

Lines changed: 183 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ tracing-subscriber = "0.3"
3131
wasmer = "5.0.4"
3232
wasmer-compiler-singlepass = "5.0.4"
3333

34-
freenet-stdlib = { path = "./stdlib/rust/", features = ["unstable"] }
35-
# freenet-stdlib = { version = "0.1.0-rc1" }
34+
# freenet-stdlib = { path = "./stdlib/rust/", features = ["unstable"] }
35+
freenet-stdlib = { version = "0.1.2" }
3636

3737
[profile.dev.package."*"]
3838
opt-level = 3

crates/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "freenet"
3-
version = "0.1.0-rc3"
3+
version = "0.1.1"
44
edition = "2021"
55
rust-version = "1.80"
66
publish = true

crates/core/src/contract/executor/runtime.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,10 @@ impl Executor<Runtime> {
564564
};
565565
let new_state = WrappedState::new(new_state.into_bytes());
566566

567-
// if new_state.as_ref() == current_state.as_ref() {
568-
// tracing::debug!("No changes in state for contract {key}, avoiding update");
569-
// return Ok(Either::Left(current_state.clone()));
570-
// }
567+
if new_state.as_ref() == current_state.as_ref() {
568+
tracing::debug!("No changes in state for contract {key}, avoiding update");
569+
return Ok(Either::Left(current_state.clone()));
570+
}
571571

572572
self.state_store
573573
.update(key, new_state.clone())

crates/core/tests/operations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async fn base_node_test_config(
4242
public_port: Option<u16>,
4343
ws_api_port: u16,
4444
) -> anyhow::Result<(ConfigArgs, PresetConfig)> {
45-
const DEFAULT_RATE_LIMIT: usize = 1024 * 1024 * 10; // 10 MB/s
45+
const _DEFAULT_RATE_LIMIT: usize = 1024 * 1024 * 10; // 10 MB/s
4646

4747
if is_gateway {
4848
assert!(public_port.is_some());

crates/core/tests/test_utils/mod.rs

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ pub struct Task {
295295
#[derive(Serialize, Deserialize, Debug)]
296296
pub enum TodoOperation {
297297
/// Add a new task
298-
AddTask(Task),
298+
Add(Task),
299299
/// Update an existing task
300-
UpdateTask(Task),
300+
Update(Task),
301301
/// Remove a task by ID
302-
RemoveTask(u64),
302+
Remove(u64),
303303
/// Mark a task as completed
304-
CompleteTask(u64),
304+
Complete(u64),
305305
}
306306

307307
/// Creates an empty todo list for testing
@@ -313,18 +313,3 @@ pub fn create_empty_todo_list() -> Vec<u8> {
313313

314314
serde_json::to_vec(&todo_list).unwrap_or_default()
315315
}
316-
317-
/// Creates an operation to add a task for testing
318-
pub fn create_add_task_operation(id: u64, title: &str, description: &str, priority: u8) -> Vec<u8> {
319-
let task = Task {
320-
id,
321-
title: title.to_string(),
322-
description: description.to_string(),
323-
completed: false,
324-
priority,
325-
};
326-
327-
let operation = TodoOperation::AddTask(task);
328-
329-
serde_json::to_vec(&operation).unwrap_or_default()
330-
}

crates/fdev/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fdev"
3-
version = "0.1.0-rc1"
3+
version = "0.1.1"
44
edition = "2021"
55
rust-version = "1.80"
66
publish = true
@@ -38,8 +38,8 @@ reqwest = { version = "0.12", features = ["json"] }
3838
http = "1.2"
3939

4040
# internal
41-
freenet = { path = "../core"}
42-
# freenet = { version = "0.1.0-rc1"}
41+
# freenet = { path = "../core"}
42+
freenet = { version = "0.1.1"}
4343
freenet-stdlib = { workspace = true }
4444

4545
[features]

tests/test-app-1/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test-contract-integration/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ mod tests {
434434
assert_eq!(todo_list.tasks.len(), 1);
435435
assert_eq!(todo_list.tasks[0].id, 1);
436436
assert_eq!(todo_list.tasks[0].title, "Updated Task");
437-
assert_eq!(todo_list.tasks[0].completed, true);
437+
assert!(todo_list.tasks[0].completed);
438438
assert_eq!(todo_list.version, 2); // Version should be incremented
439439
} else {
440440
panic!("Unexpected result type");

0 commit comments

Comments
 (0)