test_fixture crate for main branch and v4 bindings#335
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| pub decode_errors: bool, | ||
|
|
||
| // Accept inputs vector as array of uint256 | ||
| #[arg(short, long, help = "The inputs vectore")] |
There was a problem hiding this comment.
typo
| #[arg(short, long, help = "The inputs vectore")] | |
| #[arg(short, long, help = "The inputs vector")] |
There was a problem hiding this comment.
Can we also update .env.example and CI to no longer use redundant env vars?
| /// * `deployer` - The address of the deployer. | ||
| /// * `namespace` - The fully qualified namespace. | ||
| /// * `context` - The context vector. | ||
| /// * `inputs` - The inputs vector. | ||
| /// * `state_overlay` - The state_overlay vector. | ||
| /// * `decode_errors` - Whether to decode errors from registry or not | ||
| /// | ||
| /// # Returns | ||
| /// | ||
| /// The typed return of the eval, plus Foundry's RawCallResult struct, including the trace. |
There was a problem hiding this comment.
Shouldn't these docs be on the type itself rather than on the method? Also, descriptions like "The state_overlay vector" don't add any info since it's already clear that the field name is state_overlay and that its type is a vector
| pub type LocalEvmFillers = JoinFill< | ||
| JoinFill< | ||
| alloy::providers::Identity, | ||
| JoinFill< | ||
| alloy::providers::fillers::GasFiller, | ||
| JoinFill< | ||
| alloy::providers::fillers::BlobGasFiller, | ||
| JoinFill< | ||
| alloy::providers::fillers::NonceFiller, | ||
| alloy::providers::fillers::ChainIdFiller, | ||
| >, | ||
| >, | ||
| >, | ||
| >, | ||
| WalletFiller<EthereumWallet>, | ||
| >; |
There was a problem hiding this comment.
Do we need to list all of these out explicitly instead of referring to RecommendedFiller because BlobGasFiller doesn't include BlobGasFiller?
d72807b to
d3141a6
Compare
Motivation
Related to rainlanguage/raindex#1878
This PR adds
test_fixturescrate for the main branch (i9r v4), which is a local evm helper for testing, this now enables us to removeenvcrate.Solution
test_fixturescrate, this is a wrapped anvil structure with rain i9r contracts already deployed on it as well as helper functions to to easily interact with it for testing purpose.envcrateChecks
By submitting this for review, I'm confirming I've done the following:
included screenshots (if this involves a front-end change)