Skip to content

Commit

Permalink
Make buildRedemptionKey function static
Browse files Browse the repository at this point in the history
To be able to use it outside of the `Bridge` contract handle.
  • Loading branch information
r-czajkowski committed Jun 28, 2023
1 parent c2b6b14 commit 226bc08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typescript/src/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class Bridge
walletPublicKey: string,
redeemerOutputScript: string
): Promise<RedemptionRequest> {
const redemptionKey = this.buildRedemptionKey(
const redemptionKey = Bridge.buildRedemptionKey(
computeHash160(walletPublicKey),
redeemerOutputScript
)
Expand All @@ -312,7 +312,7 @@ export class Bridge
walletPublicKey: string,
redeemerOutputScript: string
): Promise<RedemptionRequest> {
const redemptionKey = this.buildRedemptionKey(
const redemptionKey = Bridge.buildRedemptionKey(
computeHash160(walletPublicKey),
redeemerOutputScript
)
Expand All @@ -337,7 +337,7 @@ export class Bridge
* un-prefixed and not prepended with length.
* @returns The redemption key.
*/
private buildRedemptionKey(
static buildRedemptionKey(
walletPublicKeyHash: string,
redeemerOutputScript: string
): string {
Expand Down

0 comments on commit 226bc08

Please sign in to comment.