Skip to content

Commit

Permalink
fix Arbitrary implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Mar 16, 2024
1 parent 0bd6dd2 commit 1f6c94a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fendermint/vm/genesis/src/arb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl Arbitrary for Genesis {
}

impl Arbitrary for ipc::GatewayParams {
fn arbitrary(g: &mut quickcheck::Gen) -> Self {
fn arbitrary(g: &mut Gen) -> Self {
Self {
subnet_id: ArbSubnetID::arbitrary(g).0,
// Gateway constructor would reject 0.
Expand All @@ -131,7 +131,7 @@ impl Arbitrary for ipc::GatewayParams {
}

impl Arbitrary for ipc::IpcParams {
fn arbitrary(g: &mut quickcheck::Gen) -> Self {
fn arbitrary(g: &mut Gen) -> Self {
Self {
gateway: ipc::GatewayParams::arbitrary(g),
}
Expand All @@ -141,8 +141,8 @@ impl Arbitrary for ipc::IpcParams {
impl Arbitrary for GenesisPower {
fn arbitrary(g: &mut Gen) -> Self {
Self {
collateral: u64::arbitrary(g).unwrap().saturating_add(1),
federated_power: u64::arbitrary(g).unwrap().saturating_add(1),
collateral: ArbTokenAmount::arbitrary(g).0,
federated_power: ArbTokenAmount::arbitrary(g).0,
}
}
}

0 comments on commit 1f6c94a

Please sign in to comment.