EVMcrispr / evmcrispr

A library for interacting with Web3 protocols in a easier fashion through a domain-specific language
https://evmcrispr.com
GNU Affero General Public License v3.0
25 stars 10 forks source link

consecutive txs to create agents produces unexecutable votes #6

Closed divine-comedian closed 3 years ago

divine-comedian commented 3 years ago

using evmcrispr terminal on xDAI

I have my DAO already setup on xDAI and I ran this code multiple times in an attempt to create multiple agents (I now realize this is not the proper syntax) :

connect <DAO> token-manager voting
install agent:new-agent 
grant . . . EXECUTE_ROLE
grant . . . TRANSFER_ROLE

I ran this 3 times and was able to execute all 3 transactions, producing 3 identical votes on my DAO

image

I was able to enact the first vote no problem but the other two I cannot enact, I get an error saying I do not have permissions.

image

sembrestels commented 3 years ago

This is the expected behavior, as only one of those votes should pass because they are trying to install the same agent. If you want to install many agents, you can do it in just one vote.