diff --git a/tests/eth_estimateGas/estimate-with-eip4844.io b/tests/eth_estimateGas/estimate-with-eip4844.io index 021e906d3..0a76bbbf2 100644 --- a/tests/eth_estimateGas/estimate-with-eip4844.io +++ b/tests/eth_estimateGas/estimate-with-eip4844.io @@ -1,4 +1,4 @@ // checks gas estimation for blob transactions (EIP-4844) // speconly: client response is only checked for schema validity. ->> {"jsonrpc":"2.0","id":1,"method":"eth_estimateGas","params":[{"blobVersionedHashes":["0x0100000000000000000000000000000000000000000000000000000000000000"],"from":"0x0c2c51a0990aee1d73c1228de158688341557508","maxFeePerBlobGas":"0x5","nonce":"0x0","to":"0x0100000000000000000000000000000000000000","type":"0x5","value":"0x1"}]} +>> {"jsonrpc":"2.0","id":1,"method":"eth_estimateGas","params":[{"blobVersionedHashes":["0x0100000000000000000000000000000000000000000000000000000000000000"],"from":"0x0c2c51a0990aee1d73c1228de158688341557508","maxFeePerBlobGas":"0x5","nonce":"0x0","to":"0x0100000000000000000000000000000000000000","type":"0x3","value":"0x1"}]} << {"jsonrpc":"2.0","id":1,"result":"0x5208"} diff --git a/tests/eth_getLogs/filter-error-blockHash-and-range.io b/tests/eth_getLogs/filter-error-blockHash-and-range.io new file mode 100644 index 000000000..21e73a0b8 --- /dev/null +++ b/tests/eth_getLogs/filter-error-blockHash-and-range.io @@ -0,0 +1,3 @@ +// checks that an error is returned if `fromBlock`/`toBlock` are specified together with `blockHash` +>> {"jsonrpc":"2.0","id":1,"method":"eth_getLogs","params":[{"blockHash":"0xfec6e8fb3735a6f24416b3b9887fd4cab5e474436ecd4ce701685487ee957416","fromBlock":"0x3","toBlock":"0x4"}]} +<< {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid argument 0: cannot specify both BlockHash and FromBlock/ToBlock, choose one or the other"}} diff --git a/tests/eth_getLogs/filter-error-future-block-range.io b/tests/eth_getLogs/filter-error-future-block-range.io new file mode 100644 index 000000000..110ec5817 --- /dev/null +++ b/tests/eth_getLogs/filter-error-future-block-range.io @@ -0,0 +1,3 @@ +// checks that an error is returned if `toBlock` is greater than the latest block +>> {"jsonrpc":"2.0","id":1,"method":"eth_getLogs","params":[{"address":null,"fromBlock":"0x29","toBlock":"0x2f","topics":null}]} +<< {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"block range extends beyond current head block"}} diff --git a/tests/eth_getLogs/filter-error-reversed-block-range.io b/tests/eth_getLogs/filter-error-reversed-block-range.io new file mode 100644 index 000000000..08b8991be --- /dev/null +++ b/tests/eth_getLogs/filter-error-reversed-block-range.io @@ -0,0 +1,3 @@ +// checks that an error is returned if `fromBlock` is larger than `toBlock` +>> {"jsonrpc":"2.0","id":1,"method":"eth_getLogs","params":[{"address":null,"fromBlock":"0x29","toBlock":"0x26","topics":null}]} +<< {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid block range params"}} diff --git a/tests/eth_getLogs/filter-with-blockHash-and-topics.io b/tests/eth_getLogs/filter-with-blockHash-and-topics.io new file mode 100644 index 000000000..7ea9f0c65 --- /dev/null +++ b/tests/eth_getLogs/filter-with-blockHash-and-topics.io @@ -0,0 +1,3 @@ +// queries for logs in a block, identified by blockHash +>> {"jsonrpc":"2.0","id":1,"method":"eth_getLogs","params":[{"address":null,"blockHash":"0x29cc6f97784c864cbe29b3502934ad874f48ddc89580018f5a32e01652c88f0a","topics":[["0x00000000000000000000000000000000000000000000000000000000656d6974"],["0x4238ace0bf7e66fd40fea01bdf43f4f30423f48432efd0da3af5fcb17a977fd4"]]}]} +<< {"jsonrpc":"2.0","id":1,"result":[{"address":"0x7dcd17433742f4c0ca53122ab541d0ba67fc27df","topics":["0x00000000000000000000000000000000000000000000000000000000656d6974","0x4238ace0bf7e66fd40fea01bdf43f4f30423f48432efd0da3af5fcb17a977fd4"],"data":"0x0000000000000000000000000000000000000000000000000000000000000001","blockNumber":"0x4","transactionHash":"0xf047c5133c96c405a79d01038b4ccf8208c03e296dd9f6bea083727c9513f805","transactionIndex":"0x0","blockHash":"0x29cc6f97784c864cbe29b3502934ad874f48ddc89580018f5a32e01652c88f0a","blockTimestamp":"0x28","logIndex":"0x0","removed":false}]} diff --git a/tests/eth_getLogs/filter-with-blockHash.io b/tests/eth_getLogs/filter-with-blockHash.io new file mode 100644 index 000000000..3d9eac8fc --- /dev/null +++ b/tests/eth_getLogs/filter-with-blockHash.io @@ -0,0 +1,3 @@ +// queries for all logs of a block, identified by blockHash +>> {"jsonrpc":"2.0","id":1,"method":"eth_getLogs","params":[{"address":null,"blockHash":"0x29cc6f97784c864cbe29b3502934ad874f48ddc89580018f5a32e01652c88f0a","topics":null}]} +<< {"jsonrpc":"2.0","id":1,"result":[{"address":"0x7dcd17433742f4c0ca53122ab541d0ba67fc27df","topics":["0x00000000000000000000000000000000000000000000000000000000656d6974","0x4238ace0bf7e66fd40fea01bdf43f4f30423f48432efd0da3af5fcb17a977fd4"],"data":"0x0000000000000000000000000000000000000000000000000000000000000001","blockNumber":"0x4","transactionHash":"0xf047c5133c96c405a79d01038b4ccf8208c03e296dd9f6bea083727c9513f805","transactionIndex":"0x0","blockHash":"0x29cc6f97784c864cbe29b3502934ad874f48ddc89580018f5a32e01652c88f0a","blockTimestamp":"0x28","logIndex":"0x0","removed":false}]} diff --git a/tests/eth_getStorageAt/get-storage-invalid-key-too-large.io b/tests/eth_getStorageAt/get-storage-invalid-key-too-large.io index 5323b78e3..c0206b37b 100644 --- a/tests/eth_getStorageAt/get-storage-invalid-key-too-large.io +++ b/tests/eth_getStorageAt/get-storage-invalid-key-too-large.io @@ -1,3 +1,3 @@ // requests an invalid storage key >> {"jsonrpc":"2.0","id":1,"method":"eth_getStorageAt","params":["0xaa00000000000000000000000000000000000000","0x00000000000000000000000000000000000000000000000000000000000000000","latest"]} -<< {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"unable to decode storage key: hex string too long, want at most 32 bytes"}} +<< {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"storage key too long (want at most 32 bytes): \"0x00000000000000000000000000000000000000000000000000000000000000000\""}} diff --git a/tests/eth_getStorageAt/get-storage-invalid-key.io b/tests/eth_getStorageAt/get-storage-invalid-key.io index dc4e1f836..4cd9bf174 100644 --- a/tests/eth_getStorageAt/get-storage-invalid-key.io +++ b/tests/eth_getStorageAt/get-storage-invalid-key.io @@ -1,3 +1,3 @@ // requests an invalid storage key >> {"jsonrpc":"2.0","id":1,"method":"eth_getStorageAt","params":["0xaa00000000000000000000000000000000000000","0xasdf","latest"]} -<< {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"unable to decode storage key: hex string invalid"}} +<< {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid hex in storage key: \"0xasdf\""}}