Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paych: Use CBOR, not DAG_CBOR, for message params #1202

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Paych: Use CBOR, not DAG_CBOR, for message params
  • Loading branch information
arajasek committed Feb 10, 2023
commit eaa98522be5fc97feb5e8d5e8c7631409f80cb27
4 changes: 2 additions & 2 deletions actors/paych/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use fil_actors_runtime::{
ActorError, Array, AsActorError,
};
use fvm_ipld_blockstore::Blockstore;
use fvm_ipld_encoding::DAG_CBOR;
use fvm_ipld_encoding::CBOR;
use fvm_shared::address::Address;

use fvm_ipld_encoding::ipld_block::IpldBlock;
Expand Down Expand Up @@ -172,7 +172,7 @@ impl Actor {
extract_send_result(rt.send_simple(
&extra.actor,
extra.method,
Some(IpldBlock { codec: DAG_CBOR, data: extra.data.to_vec() }),
Some(IpldBlock { codec: CBOR, data: extra.data.to_vec() }),
TokenAmount::zero(),
))
.map_err(|e| e.wrap("spend voucher verification failed"))?;
Expand Down
4 changes: 2 additions & 2 deletions actors/paych/tests/paych_actor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ mod merge_tests {

mod update_channel_state_extra {
use super::*;
use fvm_ipld_encoding::DAG_CBOR;
use fvm_ipld_encoding::CBOR;

const OTHER_ADDR: u64 = 104;

Expand All @@ -691,7 +691,7 @@ mod update_channel_state_extra {
rt.expect_send_simple(
other_addr,
Method::UpdateChannelState as u64,
Some(IpldBlock { codec: DAG_CBOR, data: fake_params.to_vec() }),
Some(IpldBlock { codec: CBOR, data: fake_params.to_vec() }),
TokenAmount::zero(),
None,
exit_code,
Expand Down