I am planning to deploy governance voting on Optimism.
The team has already been researching deployments on zkSync. Still, there are good reasons to use Optimism for governance voting: it builds fairness into governance voting by using a network with very low gas fees. Also, the governance voting mechanism is quite simple, and I think it’s a good way to test our deployment for Optimism.
I’ve pushed the WIP to the optimism branch, but the tests fail, and so is the EVM test, not the OVM (Optimism VM). The cause may be in Hardhat. I have not been able to get the time needed to dig deeper into that error this week. The tests I have tried are as follows.
How to test with EVM:
git clone firstname.lastname@example.org:dev-protocol/vote-governance.git cd vote-governance git checkout optimism yarn yarn test:contracts:evm
How to test with OVM:
# Terminal window 1 git clone email@example.com:ethereum-optimism/optimism.git cd optimism yarn build cd ops export COMPOSE_DOCKER_CLI_BUILD=1 export DOCKER_BUILDKIT=1 docker-compose build
# Terminal window 2 git clone firstname.lastname@example.org:dev-protocol/vote-governance.git cd vote-governance git checkout optimism yarn yarn test:contracts:ovm
I don’t know if the problem is in the way I test with EVM or in the test code. Also, the docker-compose build for testing with OVM took too long, and I had to stop testing; I think it’s important to pass the EVM tests before OVM.
@akira_taniguchi Do you have any insights?