mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-10 17:54:08 +00:00
Change postgraphile queries to work with v3 schema (#112)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user