problem: returns processed json for block with tx, instead of original json

rel: #45
This commit is contained in:
Igor Artamonov
2020-11-30 19:40:56 -05:00
parent e09b7a4eee
commit cfd73119f6
5 changed files with 49 additions and 43 deletions

View File

@@ -71,7 +71,7 @@ class EthereumReaderSpec extends Specification {
def reader = new EthereumReader(Stub(Multistream), caches, calls)
when:
def act = reader.blocksById().read(blockId).block()
def act = reader.blocksByIdParsed().read(blockId).block()
then:
act == blockJson
@@ -92,7 +92,7 @@ class EthereumReaderSpec extends Specification {
def reader = new EthereumReader(upstream, caches, calls)
when:
def act = reader.blocksById().read(blockId).block()
def act = reader.blocksByIdParsed().read(blockId).block()
then:
act == blockJson
@@ -113,7 +113,7 @@ class EthereumReaderSpec extends Specification {
def reader = new EthereumReader(upstream, caches, calls)
when:
def act = reader.blocksById().read(blockId).block()
def act = reader.blocksByIdParsed().read(blockId).block()
then:
act == blockJson
@@ -130,7 +130,7 @@ class EthereumReaderSpec extends Specification {
def reader = new EthereumReader(Stub(Multistream), caches, calls)
when:
def act = reader.blocksByHash().read(blockJson.hash).block()
def act = reader.blocksByHashParsed().read(blockJson.hash).block()
then:
act == blockJson
@@ -150,7 +150,7 @@ class EthereumReaderSpec extends Specification {
def reader = new EthereumReader(upstream, caches, calls)
when:
def act = reader.blocksByHash().read(blockJson.hash).block()
def act = reader.blocksByHashParsed().read(blockJson.hash).block()
then:
act == blockJson