diff --git a/simulators/ethereum/graphql/testcases/02_eth_call_Block8.json b/simulators/ethereum/graphql/testcases/02_eth_call_Block8.json index 50eda38a60..426a4846a5 100644 --- a/simulators/ethereum/graphql/testcases/02_eth_call_Block8.json +++ b/simulators/ethereum/graphql/testcases/02_eth_call_Block8.json @@ -1,5 +1,5 @@ { - "request": "{block(number :\"0x8\") {number call (data : {from : \"a94f5374fce5edbc8e2a8697c15331677e6ebf0b\", to: \"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f\", data :\"0x12a7b914\"}){data status}}}" + "request": "{block(number :8) {number call (data : {from : \"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b\", to: \"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f\", data :\"0x12a7b914\"}){data status}}}" , "responses":[{ "data" : { diff --git a/simulators/ethereum/graphql/testcases/16_eth_getBlock_byNumber.json b/simulators/ethereum/graphql/testcases/16_eth_getBlock_byNumber.json index 36ae441a9e..a8c2518bb9 100644 --- a/simulators/ethereum/graphql/testcases/16_eth_getBlock_byNumber.json +++ b/simulators/ethereum/graphql/testcases/16_eth_getBlock_byNumber.json @@ -1,7 +1,7 @@ { "request": - "{block (number : \"0x1e\") {transactions{hash} timestamp difficulty totalDifficulty gasUsed gasLimit hash nonce ommerCount logsBloom mixHash ommerHash extraData stateRoot receiptsRoot transactionCount transactionsRoot ommers{hash} ommerAt(index : 1){hash} miner{address} account(address: \"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f\"){balance} parent{hash} }} ", + "{block (number : 30) {transactions{hash} timestamp difficulty totalDifficulty gasUsed gasLimit hash nonce ommerCount logsBloom mixHash ommerHash extraData stateRoot receiptsRoot transactionCount transactionsRoot ommers{hash} ommerAt(index : 1){hash} miner{address} account(address: \"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f\"){balance} parent{hash} }} ", "responses":[{ diff --git a/simulators/ethereum/graphql/testcases/17_eth_getBlock_byNumberInvalid.json b/simulators/ethereum/graphql/testcases/17_eth_getBlock_byNumberInvalid.json index 4fa9e85117..90eefbaf91 100644 --- a/simulators/ethereum/graphql/testcases/17_eth_getBlock_byNumberInvalid.json +++ b/simulators/ethereum/graphql/testcases/17_eth_getBlock_byNumberInvalid.json @@ -1,24 +1,31 @@ { "request": "{block (number: 88888888) {number }} ", - "responses": [{ - "errors": [ - { - "message": "Exception while fetching data (/block) : Block number 88888888 was not found", - "locations": [ - { - "line": 1, - "column": 2 + "responses": [ + { + "errors": [ + { + "message": "Exception while fetching data (/block) : Block number 88888888 was not found", + "locations": [ + { + "line": 1, + "column": 2 + } + ], + "path": [ + "block" + ], + "extensions": { + "classification": "DataFetchingException" } - ], - "path": [ - "block" - ], - "extensions": { - "classification": "DataFetchingException" } + ], + "data": null + }, + { + "data": { + "block": null } - ], - "data": null - }], + } + ], "statusCode": 400 } \ No newline at end of file diff --git a/simulators/ethereum/graphql/testcases/20_eth_getBlockTransactionCount_byNumber.json b/simulators/ethereum/graphql/testcases/20_eth_getBlockTransactionCount_byNumber.json index f558b6ac83..789b424657 100644 --- a/simulators/ethereum/graphql/testcases/20_eth_getBlockTransactionCount_byNumber.json +++ b/simulators/ethereum/graphql/testcases/20_eth_getBlockTransactionCount_byNumber.json @@ -1,7 +1,7 @@ { "request": - "{block (number : \"0x1e\") {transactions{hash} timestamp difficulty totalDifficulty gasUsed gasLimit hash nonce ommerCount logsBloom mixHash ommerHash extraData stateRoot receiptsRoot transactionCount transactionsRoot}} ", + "{block (number : 30) {transactions{hash} timestamp difficulty totalDifficulty gasUsed gasLimit hash nonce ommerCount logsBloom mixHash ommerHash extraData stateRoot receiptsRoot transactionCount transactionsRoot}} ", "responses": [{ diff --git a/simulators/ethereum/graphql/testcases/23_eth_getLogs_matchTopic.json b/simulators/ethereum/graphql/testcases/23_eth_getLogs_matchTopic.json index f51b6292c3..4dc1db88b7 100644 --- a/simulators/ethereum/graphql/testcases/23_eth_getLogs_matchTopic.json +++ b/simulators/ethereum/graphql/testcases/23_eth_getLogs_matchTopic.json @@ -1,5 +1,5 @@ { - "request": "{ block(number: \"0x17\") { logs( filter: { topics : [[\"0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b\", \"0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580\"]]}) { index topics data account{address} transaction{hash} } } }", + "request": "{ block(number: 23) { logs( filter: { topics : [[\"0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b\", \"0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580\"]]}) { index topics data account{address} transaction{hash} } } }", "responses": [{ "data" : { "block" : { diff --git a/simulators/ethereum/graphql/testcases/28_eth_getTransaction_byBlockNumberAndIndex.json b/simulators/ethereum/graphql/testcases/28_eth_getTransaction_byBlockNumberAndIndex.json index 2a9f021b82..00a41f132d 100644 --- a/simulators/ethereum/graphql/testcases/28_eth_getTransaction_byBlockNumberAndIndex.json +++ b/simulators/ethereum/graphql/testcases/28_eth_getTransaction_byBlockNumberAndIndex.json @@ -1,7 +1,7 @@ { "request": - "{ block(number: \"0x1e\") { transactionAt(index: 0) {block{hash} hash} } }", + "{ block(number: 30) { transactionAt(index: 0) {block{hash} hash} } }", "responses":[{ "data" : { diff --git a/simulators/ethereum/graphql/testcases/29_eth_getTransaction_byBlockNumberAndInvalidIndex.json b/simulators/ethereum/graphql/testcases/29_eth_getTransaction_byBlockNumberAndInvalidIndex.json index 6642274b76..f7dd2b9529 100644 --- a/simulators/ethereum/graphql/testcases/29_eth_getTransaction_byBlockNumberAndInvalidIndex.json +++ b/simulators/ethereum/graphql/testcases/29_eth_getTransaction_byBlockNumberAndInvalidIndex.json @@ -1,7 +1,7 @@ { "request": - "{ block(number: \"0x1e\") { transactionAt(index: 1) {block{hash} hash} } }", + "{ block(number: 30) { transactionAt(index: 1) {block{hash} hash} } }", "responses":[{ "data" : {