Skip to content

Commit a31f265

Browse files
committed
chore: update eth_getTransactionCount test (#3886)
Signed-off-by: Michał Walczak <[email protected]>
1 parent b2d3aa7 commit a31f265

File tree

1 file changed

+7
-5
lines changed
  • packages/server/tests/acceptance/data/conformity/overwrites/eth_getTransactionCount

1 file changed

+7
-5
lines changed

packages/server/tests/acceptance/data/conformity/overwrites/eth_getTransactionCount/get-nonce.io

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
// Since we do not replay those transactions before starting the tests, we need a modified version of the test
77
// that queries the transaction count for an address (`sendAccountAddress`) that exists on our test node.
88
//
9-
// Note: This is the original test file, modified for our test purposes: https://github.com/ethereum/execution-apis/blob/main/tests/eth_getTransactionCount/get-nonce.io
10-
// Only the `params[0]` field and the `result` field have been changed:
11-
// - `params[0]` now points to `sendAccountAddress`
12-
// - `result` is set to the value returned by `conformityTest` for that address
13-
// All other fields must remain unchanged to preserve the integrity of the original test case.
9+
// Note: This is the original test file: https://github.com/ethereum/execution-apis/blob/main/tests/eth_getTransactionCount/get-nonce.io
10+
//
11+
// The `result` field is included in `wildcard` because it depends on the current state of the network,
12+
// and may change if additional transactions are sent from `sendAccountAddress` or if the chain state is modified
13+
// in future test updates. This ensures the test remains valid even if the nonce value changes over time.
14+
15+
## wildcard: result
1416

1517
>> {"jsonrpc":"2.0","id":1,"method":"eth_getTransactionCount","params":["0xc37f417fA09933335240FCA72DD257BFBdE9C275","latest"]}
1618
<< {"jsonrpc":"2.0","id":1,"result":"0x7"}

0 commit comments

Comments
 (0)