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 owner attribute on process struct: #26

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

jordipainan
Copy link
Member

For EVM processes the entityId is a token
contract address. If the process wants to
have the capacity for incrementing a process
question index and given the process having
the required properties enabled to do so, there is
no way to call the incrementQuestionIndex method
for the process because the token contract does not
always have the capacity of calling the method.
Adding the owner attribute enables to increment
the question index by the creator of a process.
This also enables the possibility of changing
some EVM process atritibutes on the future
by just having to check if the msg.sender
is the creator of a process.

For EVM processes the entityId is a token
contract address. If the process wants to
have the capacity for incrementing a process
question index and given the process having
the required properties enabled to do so, there is
no way to call the incrementQuestionIndex method
for the process because the token contract does not
always have the capacity of calling the method.
Adding the owner attribute enables to increment
the question index by the creator of a process.
This also enables the possibility of changing
some EVM process atritibutes on the future
by just having to check if the msg.sender
is the creator of a process.
@jordipainan jordipainan merged commit 4eb8cb7 into main Apr 27, 2021
@jordipainan jordipainan deleted the feature/evmProcess-creator-modifier branch May 6, 2021 15:49
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.

1 participant