Change postgraphile queries to work with v3 schema (#112)

This commit is contained in:
2022-04-28 17:13:32 +05:30
committed by GitHub
parent 654edf4008
commit eca09ad66b
5 changed files with 19 additions and 11 deletions
+3 -3
View File
@@ -167,7 +167,7 @@ export class GraphWatcher {
const eventFragment = contractInterface.getEvent(eventSignature);
const tx = await this._getTransactionData(blockData.headerId, txHash);
const tx = await this._getTransactionData(txHash);
const data = {
block: blockData,
@@ -299,14 +299,14 @@ export class GraphWatcher {
}
}
async _getTransactionData (headerId: number, txHash: string): Promise<Transaction> {
async _getTransactionData (txHash: string): Promise<Transaction> {
let transaction = this._transactionsMap.get(txHash);
if (transaction) {
return transaction;
}
transaction = await getFullTransaction(this._postgraphileClient, headerId, txHash);
transaction = await getFullTransaction(this._postgraphileClient, txHash);
assert(transaction);
this._transactionsMap.set(txHash, transaction);