From 226bc08f3927bcc37958cf994ab8c09c4780e9af Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Wed, 28 Jun 2023 13:29:52 +0200 Subject: [PATCH] Make `buildRedemptionKey` function static To be able to use it outside of the `Bridge` contract handle. --- typescript/src/ethereum.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typescript/src/ethereum.ts b/typescript/src/ethereum.ts index 69cf0c86e..be9260382 100644 --- a/typescript/src/ethereum.ts +++ b/typescript/src/ethereum.ts @@ -289,7 +289,7 @@ export class Bridge walletPublicKey: string, redeemerOutputScript: string ): Promise { - const redemptionKey = this.buildRedemptionKey( + const redemptionKey = Bridge.buildRedemptionKey( computeHash160(walletPublicKey), redeemerOutputScript ) @@ -312,7 +312,7 @@ export class Bridge walletPublicKey: string, redeemerOutputScript: string ): Promise { - const redemptionKey = this.buildRedemptionKey( + const redemptionKey = Bridge.buildRedemptionKey( computeHash160(walletPublicKey), redeemerOutputScript ) @@ -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 {