Skip to content

Commit b341d4c

Browse files
committed
fixes after rebasing in ipld reachability
1 parent bb145fa commit b341d4c

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

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.

fvm/src/call_manager/default.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ where
632632
system_actor::SYSTEM_ACTOR_ID,
633633
id,
634634
Entrypoint::Invoke(fvm_shared::METHOD_CONSTRUCTOR),
635-
Some(Block::new(CBOR, params)),
635+
Some(Block::new(CBOR, params, Vec::new())),
636636
&TokenAmount::zero(),
637637
false,
638638
)?;
@@ -1095,7 +1095,7 @@ impl EntrypointParams {
10951095
let ui_params = to_vec(&ui).map_err(
10961096
|e| syscall_error!(IllegalArgument; "failed to serialize upgrade params: {}", e),
10971097
)?;
1098-
let block_id = br.put(Block::new(CBOR, ui_params))?;
1098+
let block_id = br.put_reachable(Block::new(CBOR, ui_params, Vec::new()))?;
10991099
self.params.push(wasmtime::Val::I32(block_id as i32));
11001100
Ok(())
11011101
}

fvm/src/kernel/default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ where
898898
}) => {
899899
let block_id = match value {
900900
None => NO_DATA_BLOCK_ID,
901-
Some(block) => self.blocks.put(block).unwrap_or_else(|_| {
901+
Some(block) => self.blocks.put_reachable(block).unwrap_or_else(|_| {
902902
log::error!("failed to write to kernel block registry");
903903
NO_DATA_BLOCK_ID
904904
}),

fvm/tests/dummy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ impl CallManager for DummyCallManager {
403403

404404
fn upgrade_actor<K>(
405405
&mut self,
406+
_caller: ActorID,
406407
_actor_id: ActorID,
407408
_new_code_cid: Cid,
408409
_params: Option<kernel::Block>,

testing/integration/tests/upgrade_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use num_traits::Zero;
1717
#[test]
1818
fn upgrade_actor_test() {
1919
let mut tester = new_tester(
20-
NetworkVersion::V18,
20+
NetworkVersion::V21,
2121
StateTreeVersion::V5,
2222
MemoryBlockstore::default(),
2323
)

testing/test_actors/actors/fil-upgrade-actor/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2021"
55
publish = false
66

77
[target.'cfg(target_arch = "wasm32")'.dependencies]
8-
fvm_sdk = { version = "3.3.0", path = "../../../../sdk" }
9-
fvm_shared = { version = "3.5.0", path = "../../../../shared" }
8+
fvm_sdk = { version = "4.0.0-alpha.3", path = "../../../../sdk" }
9+
fvm_shared = { version = "4.0.0-alpha.3", path = "../../../../shared" }
1010
fvm_ipld_encoding = { version = "0.4.0", path = "../../../../ipld/encoding" }
1111
cid = { workspace = true }
1212
serde = { version = "1.0.164", features = ["derive"] }

0 commit comments

Comments
 (0)