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 runData for executing functions with free inputs #36

Open
loredanacirstea opened this issue Mar 27, 2019 · 0 comments
Open

Add runData for executing functions with free inputs #36

loredanacirstea opened this issue Mar 27, 2019 · 0 comments

Comments

@loredanacirstea
Copy link
Member

We currently do not support free user inputs - only inputs that are data entries in a type's storage contract.

For free user inputs, we can change dType to have:

function runData(bytes32 funcHash, bytes32[] memory dataHash, bytes memory freeinputs)
        public
        returns(bytes32[] dataHashOutputs)

runData will append the freeinputs to the calldata, after the storage data entries.
This means that any pure function defined by funcHash must define it's free inputs last, in the function signature.

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

No branches or pull requests

1 participant