Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for select shims in FV #1090

Merged
merged 2 commits into from
Jan 31, 2023
Merged

Add support for select shims in FV #1090

merged 2 commits into from
Jan 31, 2023

Conversation

emilypi
Copy link
Member

@emilypi emilypi commented Dec 7, 2022

Raised by @EnoF , this module now succeeds verification:

pact> 
pact> (module test GOVERNANCE
....>   (defcap GOVERNANCE() true)
....> 
....>   (defschema stakers-schema
....>     stake:string
....>     staker:string
....>     amount:decimal
....>     guard:guard)
....>   (deftable stakers-table:{stakers-schema})
....> 
....>   (defun view-stakers()
....>     (select stakers-table
....>       ['stake 'amount]
....>       (where 'amount (> 0.0)))))
"Loaded module test, hash -LHNaEinyALAQ-WCDHwHObpJXrgTLJBS-pjZSjVYwL8"
pact> (verify 'test)
"Verification of test succeeded"

@emilypi emilypi marked this pull request as ready for review January 31, 2023 23:17
@emilypi emilypi merged commit 0547be9 into master Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants