Skip to content

Commit

Permalink
Add Assert action type
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Sep 10, 2020
1 parent ac0c02c commit 4b507ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions constructor/job/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ const (
// in an array of []*types.Amount. This is typically used when parsing
// the suggested fee response from /construction/metadata.
FindCurrencyAmount ActionType = "find_currency_amount"

// Assert ensures that a provided number is >= 0 and causes
// execution to exit if this is not true. This is useful when
// ensuring that an account has sufficient balance to pay the
// suggested fee to broadcast a transaction.
Assert ActionType = "assert"
)

// Action is a step of computation that
Expand Down

0 comments on commit 4b507ff

Please sign in to comment.