Skip to content

Commit 58fe2cc

Browse files
committed
fix ens
1 parent 56637fe commit 58fe2cc

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

benchmarks/web3/_utils/params.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
TX_DICT = {
55
"from": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
66
"to": "0x53d284357ec70cE289D6D64134DfAc8E511c8a3D",
7-
"value": 1000000000000000000,
8-
"gas": 21000,
7+
"value": hex(1000000000000000000),
8+
"gas": hex(21000),
99
"data": "0x",
10-
"nonce": 12,
11-
"gasPrice": 50000000000,
10+
"nonce": hex(12),
11+
"gasPrice": hex(50000000000),
1212
}
1313

1414
# Log entry (mainnet-style)
@@ -20,38 +20,38 @@
2020
"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
2121
],
2222
"data": "0x00000000000000000000000000000000000000000000000000000000000003e8",
23-
"blockNumber": 12345678,
23+
"blockNumber": hex(12345678),
2424
"transactionHash": "0x5e1d3a76fbf824220e1c5e0c2e5e7e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1",
25-
"logIndex": 0,
25+
"logIndex": hex(0),
2626
}
2727

2828
# Block dict (mainnet-style, minimal for formatter)
2929
BLOCK_DICT = {
30-
"number": 12345678,
30+
"number": hex(12345678),
3131
"hash": "0x5e1d3a76fbf824220e1c5e0c2e5e7e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1",
3232
"transactions": [TX_DICT, TX_DICT],
3333
"logs": [LOG_ENTRY, LOG_ENTRY],
3434
"miner": "0x829BD824B016326A401d083B33D092293333A830",
35-
"gasLimit": 15000000,
36-
"gasUsed": 12000000,
35+
"gasLimit": hex(15000000),
36+
"gasUsed": hex(12000000),
3737
}
3838

3939
# Receipt dict (minimal)
4040
RECEIPT_DICT = {
4141
"blockHash": BLOCK_DICT["hash"],
4242
"blockNumber": BLOCK_DICT["number"],
43-
"transactionIndex": 0,
43+
"transactionIndex": hex(64),
4444
"transactionHash": TX_DICT["from"],
45-
"cumulativeGasUsed": 21000,
46-
"status": 1,
47-
"gasUsed": 21000,
45+
"cumulativeGasUsed": hex(21000),
46+
"status": hex(1),
47+
"gasUsed": hex(21000),
4848
"contractAddress": None,
4949
"logs": [LOG_ENTRY],
5050
"logsBloom": "0x" + "0" * 512,
5151
"from": TX_DICT["from"],
5252
"to": TX_DICT["to"],
5353
"effectiveGasPrice": 50000000000,
54-
"type": 2,
54+
"type": hex(2),
5555
}
5656

5757
# Fee history dict (minimal)

0 commit comments

Comments
 (0)