Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit 7dcd3d1

Browse files
authored
Add some eth_call integration tests (#92)
1 parent 1e0a124 commit 7dcd3d1

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

tests/integration/jsonrpc_commands_goerli.json

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,28 @@
572572
"result":"0x"
573573
}
574574
},
575+
{
576+
"request": {
577+
"jsonrpc":"2.0",
578+
"method":"eth_call",
579+
"params":[
580+
{
581+
"data": "0xf2fde38b0000000000000000000000007b34bb3a00197e463acfd8556f7a9e1fc1b96b1f",
582+
"from": "0x3a9a5def01d7b14c14ef51996bf66f3047f0738f",
583+
"to": "0x900c8c0a1b609533762390254b58c5760e4d7405",
584+
"gas": "0x7855",
585+
"gasPrice": "0x1"
586+
},
587+
"0x4366B7"
588+
],
589+
"id":1
590+
},
591+
"response": {
592+
"id":1,
593+
"jsonrpc":"2.0",
594+
"result":"0x"
595+
}
596+
},
575597
{
576598
"request": {
577599
"jsonrpc":"2.0",
@@ -584,7 +606,7 @@
584606
"gas": "0xF4240",
585607
"gasPrice": "0x10C388C00"
586608
},
587-
"3D0900"
609+
"0x3D0900"
588610
],
589611
"id":1
590612
},
@@ -597,6 +619,31 @@
597619
}
598620
}
599621
},
622+
{
623+
"request": {
624+
"jsonrpc":"2.0",
625+
"method":"eth_call",
626+
"params":[
627+
{
628+
"data": "0xdaa6d5560000000000000000000000000000000000000000000000000000000000000000",
629+
"from": "0x52c24586c31cff0485a6208bb63859290fba5bce",
630+
"to": "0x0715a7794a1dc8e42615f059dd6e406a6594651a",
631+
"gas": "0x8040",
632+
"gasPrice": "0x10C388C00"
633+
},
634+
"0x3D0900"
635+
],
636+
"id":1
637+
},
638+
"response": {
639+
"id":1,
640+
"jsonrpc":"2.0",
641+
"error":{
642+
"code":-32000,
643+
"message":"out of gas"
644+
}
645+
}
646+
},
600647
{
601648
"request": {
602649
"jsonrpc":"2.0",

0 commit comments

Comments
 (0)