Skip to content

Commit 7929284

Browse files
improve: use logToSortableEvent
Signed-off-by: james-a-morris <[email protected]>
1 parent b649d11 commit 7929284

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Diff for: src/clients/HubPoolClient.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import {
4444
getTokenInfo,
4545
getUsdcSymbol,
4646
getL1TokenInfo,
47+
logToSortableEvent,
4748
} from "../utils";
4849
import { AcrossConfigStoreClient as ConfigStoreClient } from "./AcrossConfigStoreClient/AcrossConfigStoreClient";
4950
import { BaseAbstractClient, isUpdateFailureReason, UpdateFailureReason } from "./BaseAbstractClient";
@@ -906,9 +907,7 @@ export class HubPoolClient extends BaseAbstractClient {
906907
[
907908
{
908909
spokePool: args.spokePool,
909-
blockNumber: args.blockNumber,
910-
txnIndex: args.txnIndex,
911-
logIndex: args.logIndex,
910+
...logToSortableEvent(event),
912911
},
913912
]
914913
);
@@ -926,10 +925,7 @@ export class HubPoolClient extends BaseAbstractClient {
926925
{
927926
l1Token: args.l1Token,
928927
l2Token: args.destinationToken,
929-
blockNumber: args.blockNumber,
930-
txnIndex: args.txnIndex,
931-
logIndex: args.logIndex,
932-
txnRef: args.txnRef,
928+
...logToSortableEvent(event),
933929
},
934930
]
935931
);

0 commit comments

Comments
 (0)