File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
decodeTXHeadersSchema ,
12
12
type DecodeTXHeaders ,
13
13
} from "./tx.schema" ;
14
- import { fetchEventsFromLogs , fetchTxDataFromHash } from "./tx.service" ;
14
+ import { fetchEventsFromLogs , fetchDataFromTx } from "./tx.service" ;
15
15
import { type Chain } from "@covalenthq/client-sdk" ;
16
16
17
17
export const txRouter = Router ( ) ;
@@ -26,7 +26,7 @@ const handleDecode = async (
26
26
"x-covalent-api-key"
27
27
] ;
28
28
const { network, tx_hash } = req . body as DecodeTXRequest ;
29
- const { log_events, metadata } = await fetchTxDataFromHash (
29
+ const { log_events, metadata } = await fetchDataFromTx (
30
30
network as Chain ,
31
31
tx_hash ,
32
32
covalentApiKey
Original file line number Diff line number Diff line change 6
6
} from "@covalenthq/client-sdk" ;
7
7
import { type TransactionMetadata } from "../../services/decoder/decoder.types" ;
8
8
9
- export const fetchTxDataFromHash = async (
9
+ export const fetchDataFromTx = async (
10
10
network : Chain ,
11
11
tx_hash : string ,
12
12
covalentApiKey : string
You can’t perform that action at this time.
0 commit comments