getLogs API changes to return txHash, make contract arg optional. (#81)

* getLogs API changes to return txHash, make contract arg optional.

* Populate log index.

* Add test for txn hash in GetLogs request.

* Convert tx string to common.Hash after fetching.

Co-authored-by: Arijit Das <arijitad.in@gmail.com>
This commit is contained in:
Ashwin Phatak
2021-07-26 15:43:38 +05:30
committed by GitHub
co-authored by Arijit Das
parent afc63ac960
commit 70f7face75
6 changed files with 43 additions and 16 deletions
+1 -1
View File
@@ -295,6 +295,6 @@ const schema string = `
getStorageAt(blockHash: Bytes32!, contract: Address!, slot: Bytes32!): StorageResult
# Get contract logs by block hash and contract address.
getLogs(blockHash: Bytes32!, contract: Address!): [Log!]
getLogs(blockHash: Bytes32!, contract: Address): [Log!]
}
`