Skip to content

Commit

Permalink
private functions
Browse files Browse the repository at this point in the history
  • Loading branch information
calldelegation committed Sep 12, 2024
1 parent 17c40e7 commit 19bdd60
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/predicate/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ use std::{
inputs::{
input_amount,
},
outputs::{
output_amount,
},
tx::{
tx_id,
tx_witnesses_count
Expand All @@ -20,8 +17,8 @@ configurable {
FLOOR: u64 = 1,
}

fn input_output_checks() -> bool {
if (100 >= input_amount(0).unwrap() && 100 >= output_amount(0)) {
fn input_checks() -> bool {
if (100 >= input_amount(0).unwrap()) {
return true
}
return false
Expand All @@ -46,5 +43,5 @@ fn main(a: u64, b: str, c: bool, d: b256) -> bool {
x -= 1;
}

return input_output_checks()
return input_checks()
}

0 comments on commit 19bdd60

Please sign in to comment.