Skip to content

Commit

Permalink
test:slightly refrator and add more beneficiary test
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin committed Aug 15, 2022
1 parent 1aa86d5 commit 2948cab
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 160 deletions.
4 changes: 2 additions & 2 deletions actors/miner/src/beneficiary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use fvm_shared::econ::TokenAmount;
use num_traits::Zero;
use std::ops::Sub;

#[derive(Debug, PartialEq, Clone, Serialize_tuple, Deserialize_tuple)]
#[derive(Debug, PartialEq, Eq, Clone, Serialize_tuple, Deserialize_tuple)]
pub struct BeneficiaryTerm {
/// The total amount the current beneficiary can withdraw. Monotonic, but reset when beneficiary changes.
#[serde(with = "bigint_ser")]
Expand Down Expand Up @@ -51,7 +51,7 @@ impl BeneficiaryTerm {
}
}

#[derive(Debug, PartialEq, Serialize_tuple, Deserialize_tuple)]
#[derive(Debug, PartialEq, Eq, Serialize_tuple, Deserialize_tuple)]
pub struct PendingBeneficiaryChange {
pub new_beneficiary: Address,
#[serde(with = "bigint_ser")]
Expand Down
Loading

0 comments on commit 2948cab

Please sign in to comment.