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 foundry tests in CI workflow #346

Open
m-Peter opened this issue Jul 15, 2024 · 2 comments
Open

Add foundry tests in CI workflow #346

m-Peter opened this issue Jul 15, 2024 · 2 comments
Assignees
Milestone

Comments

@m-Peter
Copy link
Collaborator

m-Peter commented Jul 15, 2024

Something similar is done in the flow-evm-bridge repository.

@m-Peter m-Peter added this to the Flow-EVM-M2 milestone Jul 15, 2024
@m-Peter m-Peter self-assigned this Jul 15, 2024
@sideninja
Copy link
Contributor

what kind of tests would we add? because I'm not sure this tests are really relevant to evm gateway? more to evm core if anything, but please explain in more detail the issue.

@m-Peter
Copy link
Collaborator Author

m-Peter commented Jul 15, 2024

Almost all these commands accept an --rpc-url option, so they interact with the EVM Gateway. For example:

forge script script/Counter.s.sol:CounterScript \
 --broadcast \
 -vvv \
 --legacy \
 --rpc-url https://previewnet.evm.nodes.onflow.org/
forge create --rpc-url https://previewnet.evm.nodes.onflow.org \
 --private-key $YOUR_PRIVATE_KEY \
 --legacy \
 src/Counter.sol:Counter
cast send 0xA56e0a69CF48b2a70c575b42A80bE2AfD313686b \
--private-key d9ae6467cabb04657fc1b69d61d44876041292c0fddad1e34bf731bd10826ec6 \
--rpc-url https://previewnet.evm.nodes.onflow.org \
 "setNumber(uint256)" 42

@m-Peter m-Peter removed the EVM label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants