Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Zuluaga committed Apr 17, 2023
1 parent 355cf55 commit 3bac76b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions certs_governance/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,13 @@ impl GovernanceTrait for CertGovernance {
}

/// Defines receivers and distribution_limit depending on the received ones.
fn apply_distribution(e: Env, receiver: Address, wallet_contract_id: BytesN<32>, cid: Bytes, distribution_date: u64) {
fn apply_distribution(
e: Env,
receiver: Address,
wallet_contract_id: BytesN<32>,
cid: Bytes,
distribution_date: u64,
) {
match read_receivers(&e).get(receiver.clone()) {
Some(_) => {
distribute_receiver(&e, &receiver, distribution_date, wallet_contract_id, cid);
Expand All @@ -134,7 +140,11 @@ fn apply_distribution(e: Env, receiver: Address, wallet_contract_id: BytesN<32>,
}

/// Defines receivers and distribution_limit depending on the received ones.
fn define_limit_and_receivers(e: Env, receivers: Option<Vec<Address>>, distribution_limit: Option<u32>) {
fn define_limit_and_receivers(
e: Env,
receivers: Option<Vec<Address>>,
distribution_limit: Option<u32>,
) {
match receivers {
Some(receivers) => {
write_distribution_limit(&e, receivers.len());
Expand Down

0 comments on commit 3bac76b

Please sign in to comment.