Skip to content

Commit

Permalink
Paych: Use CBOR, not DAG_CBOR, for message params (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek authored Feb 10, 2023
1 parent eb3cc67 commit 73fa977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 73fa977

Please sign in to comment.