Skip to content

Commit

Permalink
Update SpokeUtils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Feb 15, 2024
1 parent 2dddb22 commit df94108
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/utils/SpokeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,21 +241,7 @@ export function getV3RelayHash(relayData: V3RelayData, destinationChainId: numbe
}

export function getV3RelayHashFromEvent(e: V3Deposit | V3Fill | SlowFillRequest): string {
const relayData = {
depositor: e.depositor,
recipient: e.recipient,
exclusiveRelayer: e.exclusiveRelayer,
inputToken: e.inputToken,
outputToken: e.outputToken,
inputAmount: e.inputAmount,
outputAmount: e.outputAmount,
originChainId: e.originChainId,
depositId: e.depositId,
fillDeadline: e.fillDeadline,
exclusivityDeadline: e.exclusivityDeadline,
message: e.message,
};
return getV3RelayHash(relayData, e.destinationChainId);
return getV3RelayHash(e, e.destinationChainId);
}
/**
* Find the amount filled for a deposit at a particular block.
Expand Down

0 comments on commit df94108

Please sign in to comment.