Skip to content

Commit

Permalink
Make buildRedemptionKey function static (#639)
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
nkuba authored Jun 28, 2023
2 parents c2b6b14 + 226bc08 commit 22acd71
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 22acd71

Please sign in to comment.