Skip to content

Commit 73fa977

Browse files
authored
Paych: Use CBOR, not DAG_CBOR, for message params (#1202)
1 parent eb3cc67 commit 73fa977

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

actors/paych/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use fil_actors_runtime::{
88
ActorError, Array, AsActorError,
99
};
1010
use fvm_ipld_blockstore::Blockstore;
11-
use fvm_ipld_encoding::DAG_CBOR;
11+
use fvm_ipld_encoding::CBOR;
1212
use fvm_shared::address::Address;
1313

1414
use fvm_ipld_encoding::ipld_block::IpldBlock;
@@ -172,7 +172,7 @@ impl Actor {
172172
extract_send_result(rt.send_simple(
173173
&extra.actor,
174174
extra.method,
175-
Some(IpldBlock { codec: DAG_CBOR, data: extra.data.to_vec() }),
175+
Some(IpldBlock { codec: CBOR, data: extra.data.to_vec() }),
176176
TokenAmount::zero(),
177177
))
178178
.map_err(|e| e.wrap("spend voucher verification failed"))?;

actors/paych/tests/paych_actor_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ mod merge_tests {
669669

670670
mod update_channel_state_extra {
671671
use super::*;
672-
use fvm_ipld_encoding::DAG_CBOR;
672+
use fvm_ipld_encoding::CBOR;
673673

674674
const OTHER_ADDR: u64 = 104;
675675

@@ -691,7 +691,7 @@ mod update_channel_state_extra {
691691
rt.expect_send_simple(
692692
other_addr,
693693
Method::UpdateChannelState as u64,
694-
Some(IpldBlock { codec: DAG_CBOR, data: fake_params.to_vec() }),
694+
Some(IpldBlock { codec: CBOR, data: fake_params.to_vec() }),
695695
TokenAmount::zero(),
696696
None,
697697
exit_code,

0 commit comments

Comments
 (0)