File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export async function parseSwap({
3232 transactionHash : Address ;
3333 smartContractWallet ?: Address ;
3434} ) {
35- const chainId = await publicClient . getChainId ( ) ;
35+ const chainId = publicClient . chain . id ;
3636
3737 if ( ! isChainIdSupported ( chainId ) ) {
3838 throw new Error ( `chainId ${ chainId } is unsupported…` ) ;
@@ -47,9 +47,11 @@ export async function parseSwap({
4747 } ,
4848 } ) ) ;
4949
50- const trace = await client . traceCall ( { hash } ) ;
51-
52- const transaction = await publicClient . getTransaction ( { hash } ) ;
50+ const [ trace , transaction , transactionReceipt ] = await Promise . all ( [
51+ client . traceCall ( { hash } ) ,
52+ publicClient . getTransaction ( { hash } ) ,
53+ publicClient . getTransactionReceipt ( { hash } ) ,
54+ ] ) ;
5355
5456 const { from : taker , value, to } = transaction ;
5557
You can’t perform that action at this time.
0 commit comments