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

Create test to simulate contract deployment #23

Open
Tracked by #11
jbowen93 opened this issue Mar 1, 2022 · 1 comment
Open
Tracked by #11

Create test to simulate contract deployment #23

jbowen93 opened this issue Mar 1, 2022 · 1 comment

Comments

@jbowen93
Copy link

jbowen93 commented Mar 1, 2022

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
Copy link
Author

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