Skip to content

Commit

Permalink
fix typos and incorrect comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fulltimemike committed Sep 26, 2024
1 parent 80fa00b commit f2b2462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grant_disbursement/src/main.leo
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@ program grant_disbursement.aleo {
// Get the grant
let grant: Grant = grants.get(id);

// Ensure the caller is the recipient_rewards_key
// Ensure the caller is the recipient_principal_key
assert_eq(caller, grant.recipient_principal_key);

// Get the current timestamp
let current_timestamp: u64 = time_oracle.aleo/timestamp.get(0u8);

// Assert that the grant is before the cliff
// Assert that the grant is after the cliff
assert(current_timestamp >= grant.cliff_timestamp);

// Subtract the amount from the grant
Expand Down

0 comments on commit f2b2462

Please sign in to comment.