From 73fa9776a68f2a9491a8199a9f0af6a3f5607139 Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Fri, 10 Feb 2023 15:29:58 -0500 Subject: [PATCH] Paych: Use CBOR, not DAG_CBOR, for message params (#1202) --- actors/paych/src/lib.rs | 4 ++-- actors/paych/tests/paych_actor_test.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/actors/paych/src/lib.rs b/actors/paych/src/lib.rs index 3ac46693a..3e01e85ae 100644 --- a/actors/paych/src/lib.rs +++ b/actors/paych/src/lib.rs @@ -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; @@ -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"))?; diff --git a/actors/paych/tests/paych_actor_test.rs b/actors/paych/tests/paych_actor_test.rs index 7598c4664..909aef0c7 100644 --- a/actors/paych/tests/paych_actor_test.rs +++ b/actors/paych/tests/paych_actor_test.rs @@ -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; @@ -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,