Skip to content

Can I use a transaction function to check invariants? #1138

Answered by Vaelatern
Vaelatern asked this question in Q&A
Discussion options

You must be logged in to vote

So returning false works, can I return true as a noop?

Testing suggests I can get what I want if I return [] on successfully matching the invariant, and false on failure.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Vaelatern
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@refset
Comment options

Answer selected by Vaelatern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants