Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Add ledger check to example #5

Merged
merged 2 commits into from
Apr 23, 2020
Merged

Add ledger check to example #5

merged 2 commits into from
Apr 23, 2020

Conversation

msfeldstein
Copy link
Contributor

The current example rule was too simple. I added a rule "Accounts can not hold more than 1000 tokens" so we need to check the ledger from horizon which exercises and illustrates both checking the ledger and doing asynchronous things in the rule.

I also filter out any transactions that don't contain 1 and only 1 payment operation. There is still a problem that other operations could sneak in, but i have a bug filed for that in #4 .

Fixes #2

@msfeldstein msfeldstein merged commit 650510b into master Apr 23, 2020
@msfeldstein msfeldstein deleted the betterexample branch April 23, 2020 19:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more meaningful example
1 participant