Skip to content

Commit 0d2d2a7

Browse files
committed
fix(tests): block count, tx args
1 parent abde80b commit 0d2d2a7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_mcp_ethereum_tools.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ async def test_eth_max_priority_fee_per_gas():
123123
async def test_eth_fee_history():
124124
result = await tools.eth_feeHistory(
125125
chain="Ethereum",
126-
block_count="5",
126+
block_count="0x5", # Changed to hex
127127
newest_block="latest",
128-
reward_percentiles=["10", "50", "90"],
128+
reward_percentiles=[10, 50, 90], # Changed to integers
129129
)
130130
assert not result.isError, f"Error: {result.content}"
131131
assert isinstance(result.content, list)
@@ -537,7 +537,7 @@ async def test_trace_call_many():
537537
async def test_trace_raw_transaction():
538538
result = await tools.trace_rawTransaction(
539539
chain="Ethereum",
540-
raw_tx="0xf86c808504a817c800825208945dd25e4e73b24e1d6a0be0b906c3b44ccdd7ce9e880de0b6b3a764000080830151b8a0de0b295669a9fd93d5f28d9ec85e40f4cb697bae5dd25e4e73b24e1d6a0be0b9080",
540+
raw_tx="0xf86c808504a817c800825208945dd25e4e73b24e1d6a0be0b906c3b44ccdd7ce9e880de0b6b3a764000080820151a0de0b295669a9fd93d5f28d9ec85e40f4cb697bae5dd25e4e73b24e1d6a0be0b90a05dd25e4e73b24e1d6a0be0b906c3b44ccdd7ce9e88de0b6b3a764000080820151",
541541
trace_types=["trace"],
542542
)
543543
assert not result.isError, f"Error: {result.content}"
@@ -757,6 +757,8 @@ async def test_eth_simulate_v1():
757757
"from": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae",
758758
"to": "0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13",
759759
"value": "0x1",
760+
"gas": "0x5208", # Added gas limit
761+
"gasPrice": "0x3b9aca00", # Added gas price (1 gwei)
760762
}
761763
]
762764
}

0 commit comments

Comments
 (0)