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

Use tx current block in tests #24

Merged
merged 2 commits into from
Jul 16, 2024
Merged

Use tx current block in tests #24

merged 2 commits into from
Jul 16, 2024

Conversation

JulianGCalderon
Copy link
Contributor

Changes the tests so that they have the current transaction block in the test case, instead of the previous one

@JulianGCalderon JulianGCalderon marked this pull request as ready for review July 5, 2024 20:53
RpcChain::MainNet
=> ignore
)]
fn blockifier_tx(hash: &str, block_number: u64, chain: RpcChain) {
// Execute using blockifier
let (tx_info, trace, _receipt) = execute_tx(hash, chain, BlockNumber(block_number));
let (tx_info, trace, _receipt) = execute_tx(hash, chain, BlockNumber(block_number - 1));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document this line explaining the -1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@edg-l edg-l merged commit 6862d5c into main Jul 16, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants