Skip to content

Commit 92a23c6

Browse files
committed
fix(sdk-coin-apt): add getter for sender pubkey
Ticket: COIN-2891
1 parent 98b16cf commit 92a23c6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

modules/sdk-coin-apt/src/lib/transaction/transaction.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ export abstract class Transaction extends BaseTransaction {
177177
this._senderSignature = { publicKey, signature };
178178
}
179179

180+
getFeePayerPubKey(): string {
181+
return this._feePayerSignature.publicKey.pub;
182+
}
183+
180184
addFeePayerSignature(publicKey: PublicKey, signature: Buffer): void {
181185
this._feePayerSignature = { publicKey, signature };
182186
}

modules/sdk-coin-apt/src/lib/transactionBuilder.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,8 @@ export abstract class TransactionBuilder extends BaseTransactionBuilder {
159159
addFeePayerAddress(address: string): void {
160160
this.transaction.addFeePayerAddress(address);
161161
}
162+
163+
getFeePayerPubKey(): string {
164+
return this.transaction.getFeePayerPubKey();
165+
}
162166
}

0 commit comments

Comments
 (0)