Skip to content

Commit

Permalink
fixes after rebasing in ipld reachability
Browse files Browse the repository at this point in the history
  • Loading branch information
fridrik01 committed Oct 3, 2023
1 parent bb145fa commit b341d4c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions fvm/src/call_manager/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ where
system_actor::SYSTEM_ACTOR_ID,
id,
Entrypoint::Invoke(fvm_shared::METHOD_CONSTRUCTOR),
Some(Block::new(CBOR, params)),
Some(Block::new(CBOR, params, Vec::new())),
&TokenAmount::zero(),
false,
)?;
Expand Down Expand Up @@ -1095,7 +1095,7 @@ impl EntrypointParams {
let ui_params = to_vec(&ui).map_err(
|e| syscall_error!(IllegalArgument; "failed to serialize upgrade params: {}", e),
)?;
let block_id = br.put(Block::new(CBOR, ui_params))?;
let block_id = br.put_reachable(Block::new(CBOR, ui_params, Vec::new()))?;
self.params.push(wasmtime::Val::I32(block_id as i32));
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion fvm/src/kernel/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ where
}) => {
let block_id = match value {
None => NO_DATA_BLOCK_ID,
Some(block) => self.blocks.put(block).unwrap_or_else(|_| {
Some(block) => self.blocks.put_reachable(block).unwrap_or_else(|_| {
log::error!("failed to write to kernel block registry");
NO_DATA_BLOCK_ID
}),
Expand Down
1 change: 1 addition & 0 deletions fvm/tests/dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ impl CallManager for DummyCallManager {

fn upgrade_actor<K>(
&mut self,
_caller: ActorID,
_actor_id: ActorID,
_new_code_cid: Cid,
_params: Option<kernel::Block>,
Expand Down
2 changes: 1 addition & 1 deletion testing/integration/tests/upgrade_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use num_traits::Zero;
#[test]
fn upgrade_actor_test() {
let mut tester = new_tester(
NetworkVersion::V18,
NetworkVersion::V21,
StateTreeVersion::V5,
MemoryBlockstore::default(),
)
Expand Down
4 changes: 2 additions & 2 deletions testing/test_actors/actors/fil-upgrade-actor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
publish = false

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

0 comments on commit b341d4c

Please sign in to comment.