Skip to content

Commit

Permalink
Fix typeo in predicates.md (FuelLabs#3328)
Browse files Browse the repository at this point in the history
Just found a small typeo while browsing the predicate doc for someone on
the bird app
  • Loading branch information
eureka-cpu authored Nov 9, 2022
1 parent e7f4bd3 commit 9f96bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/sway-program-types/predicates.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ fn main() -> bool {

## Debugging Predicates

Because they don't have any side effects (they are _pure_), predicates cannot create receipts. Therefore, they cannot have logging or create a stack backtrace. This means that there is no naive way to debug them aside from using a single-stepping debugger (which is a [work-in-progress](https://github.com/FuelLabs/fuel-debugger/pull/1)).
Because they don't have any side effects (they are _pure_), predicates cannot create receipts. Therefore, they cannot have logging or create a stack backtrace. This means that there is no native way to debug them aside from using a single-stepping debugger (which is a [work-in-progress](https://github.com/FuelLabs/fuel-debugger/pull/1)).

As a workaround, the predicate can be written, tested, and debugged first as a `script`, and then changed back into a `predicate`.

0 comments on commit 9f96bfa

Please sign in to comment.