Skip to content

Conversation

@steph-rs
Copy link

@steph-rs steph-rs commented Nov 1, 2025

Partly covers #151; new test environment from #160

I had to copy some code to new test env (flashblocks-rpc/tests).

Needs to be added to close #151 completely:

  • ERC-20 with a TransparentProxy wrapper (e.g. USDC token)

@cb-heimdall
Copy link
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Copy link
Contributor

@haardikk21 haardikk21 left a comment

Choose a reason for hiding this comment

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

Generally looks good to me, some minor changes requested

}

#[tokio::test]
async fn test_basic_eth_call_with_flashblocks() -> eyre::Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

this test is ~the same as already existing in rpc.rs. Don't think it needs to exist in erc20.rs

}

#[tokio::test]
async fn test_erc20_balance_progression() -> eyre::Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

all of these steps appear to be covered in the multi user balances test as well.

im not sure what the SimpleToken contract is that you used, but it may be more interesting here to track balance changes across functions other than just transfer here to ensure correctness rather than this test which seems like a subset of test_multi_user_balances

Specifically, if a mint function is available - we should be able to track that. If a burn function is available, we should track that. And transferFrom (i.e. approve + transferFrom) would be great.

@cb-heimdall
Copy link
Collaborator

Review Error for haardikk21 @ 2025-11-03 16:05:00 UTC
User failed mfa authentication, see go/mfa-help

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.

improve eth_call tests to have more real-world scenarios

3 participants