-
Notifications
You must be signed in to change notification settings - Fork 25
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
SC: add get_calls/0 action #822
SC: add get_calls/0 action #822
Conversation
I think for now, we can keep it in the actions block |
As discussed with @Neylix , we should remove the get_calls/1 for 2 reasons:
What do you think @samuelmanzanera ? |
Indeed, the initial goal of the issue was to get the inputs the current contract . The get_calls/1 was bonus, but will require indeed I/O by fetching for others chains. I think you can drop the get_calls/1 . |
8cc21be
to
5ecbcd7
Compare
cd3f22d
to
242ca61
Compare
242ca61
to
69d5139
Compare
Description
This PR aims at adding a
get_calls/1
function to the smart contracts' actions.This function can be used to create aggregator contracts that do not do anything until some threshold.
I found few issues along the way that I will create and fix outside of this PR.
Should the get_calls/1 be available outside the action block?
Fixes #512
Type of change
How Has This Been Tested?
I have tested with this contract:
When I trigger this contract, a new transaction in the contract chain have the content updated to "1".
Checklist: