celestiaorg / evmos

Evmos is the Ethereum Virtual Machine (EVM) Hub on the Cosmos Network. It is the flagship implementation of the Ethermint library that prioritizes interoperability and novel economics.
https://evmos.dev
Apache License 2.0
1 stars 1 forks source link

Create test to simulate contract deployment #23

Open jbowen93 opened 2 years ago

jbowen93 commented 2 years ago

We should make sure there is a unit or integration test that simulates deploying a solidity contract.

First pass at integration test could be a bash script such as

forge init test-contract
cd test-contract
forge build
# sed command to copy in a Storage contract
forge create Storage
# capture contract address
cast call $ADDR "store(uint256)" "100"
# validate response
cast call $ADDR "retrieve()" 
# validate response
jbowen93 commented 2 years ago

https://hardhat.org/guides/deploying.html