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
@@ -213,10 +213,10 @@ export const getFullBlock = async (ethClient: EthClient, ethProvider: providers.
};
};
export const getFullTransaction = async (ethClient: EthClient, headerId: number, txHash: string): Promise<any> => {
export const getFullTransaction = async (ethClient: EthClient, txHash: string): Promise<any> => {
const {
ethTransactionCidByHeaderIdAndTxHash: fullTx
} = await ethClient.getFullTransaction({ headerId, txHash });
ethTransactionCidByTxHash: fullTx
} = await ethClient.getFullTransaction(txHash);
assert(fullTx.blockByMhKey);