From 89774e47888f323fefa04c719fbdcab54c46f9e5 Mon Sep 17 00:00:00 2001 From: lightclient Date: Fri, 13 Oct 2023 20:41:45 -0600 Subject: [PATCH] tests: add tests for eth_sendRawTransaction --- tests/eth_sendRawTransaction/send-access-list-transaction.io | 2 ++ .../send-dynamic-fee-access-list-transaction.io | 2 ++ tests/eth_sendRawTransaction/send-dynamic-fee-transaction.io | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 tests/eth_sendRawTransaction/send-access-list-transaction.io create mode 100644 tests/eth_sendRawTransaction/send-dynamic-fee-access-list-transaction.io create mode 100644 tests/eth_sendRawTransaction/send-dynamic-fee-transaction.io diff --git a/tests/eth_sendRawTransaction/send-access-list-transaction.io b/tests/eth_sendRawTransaction/send-access-list-transaction.io new file mode 100644 index 000000000..562acd729 --- /dev/null +++ b/tests/eth_sendRawTransaction/send-access-list-transaction.io @@ -0,0 +1,2 @@ +>> {"jsonrpc":"2.0","id":1,"method":"eth_sendRawTransaction","params":["0x01f901098205390b843b9aca0083015f90940000000000000000000000000000000000031ec780b844a9059cbb000000000000000000000000cff33720980c026cc155dcb366861477e988fd870000000000000000000000000000000000000000000000000000000002fd6892f85bf859940000000000000000000000000000000000031ec7f842a00000000000000000000000000000000000000000000000000000000000000000a0010000000000000000000000000000000000000000000000000000000000000080a055bc36eed6f3cb22458a68938df60006cb9edb1550e2695b2107e8ba4580a387a0038f2d5cc5359365ab6698339f105d914ecfa534f6852920009b166cf47f8f92"]} +<< {"jsonrpc":"2.0","id":1,"result":"0xc645118c58f607edaade4f844b59d39c6cd99d776f5fce21e49885bfd433cf36"} diff --git a/tests/eth_sendRawTransaction/send-dynamic-fee-access-list-transaction.io b/tests/eth_sendRawTransaction/send-dynamic-fee-access-list-transaction.io new file mode 100644 index 000000000..d87cfd166 --- /dev/null +++ b/tests/eth_sendRawTransaction/send-dynamic-fee-access-list-transaction.io @@ -0,0 +1,2 @@ +>> {"jsonrpc":"2.0","id":1,"method":"eth_sendRawTransaction","params":["0x02f9010c8205390c8201f4843b9acbf483013880940000000000000000000000000000000000031ec780b844a9059cbb000000000000000000000000cff33720980c026cc155dcb366861477e988fd870000000000000000000000000000000000000000000000000000000002fd6892f85bf859940000000000000000000000000000000000031ec7f842a00000000000000000000000000000000000000000000000000000000000000000a0010000000000000000000000000000000000000000000000000000000000000001a09b082a0497761f4e578912f883f9adb137c8c2177b58ee3dc0347b500e322a48a0110e954cca33002678faaa03cde3d5b2a46fa23e47b679fb9829bb76c9069573"]} +<< {"jsonrpc":"2.0","id":1,"result":"0xcf55d0d3b3de69fc3027488965c00d9214ffa4c2e102d6ca8ca27397ebeb8c14"} diff --git a/tests/eth_sendRawTransaction/send-dynamic-fee-transaction.io b/tests/eth_sendRawTransaction/send-dynamic-fee-transaction.io new file mode 100644 index 000000000..74a8ab20e --- /dev/null +++ b/tests/eth_sendRawTransaction/send-dynamic-fee-transaction.io @@ -0,0 +1,2 @@ +>> {"jsonrpc":"2.0","id":1,"method":"eth_sendRawTransaction","params":["0x02f88c8205390a8201f4843b9acbf482ea60802ab73d602d80600a3d3981f3363d3d373d3d3d363d734d11c446473105a02b5c1ab9ebe9b03f33902a295af43d82803e903d91602b57fd5bf3c0019f4e7d8f6f497592f1403a1d4c907b4d4669fc110f6b3630526a827fd3f5250aa05d9d7b8a36c3a7784aee0c2e3c6c29f8d7424ceb95549f1953d4e86a76e09b84"]} +<< {"jsonrpc":"2.0","id":1,"result":"0x93f8e151d0002c9367664ee25562082783566e15c7a553d8feebf4c07d89ee40"}