Skip to content

Commit 979d800

Browse files
authored
Merge pull request #5427 from BitGo/add-fee-pub
fix(sdk-coin-apt): add getter for feePayer pubkey
2 parents ac9b92d + 92a23c6 commit 979d800

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
@@ -179,6 +179,10 @@ export abstract class Transaction extends BaseTransaction {
179179
this._senderSignature = { publicKey, signature };
180180
}
181181

182+
getFeePayerPubKey(): string {
183+
return this._feePayerSignature.publicKey.pub;
184+
}
185+
182186
addFeePayerSignature(publicKey: PublicKey, signature: Buffer): void {
183187
this._feePayerSignature = { publicKey, signature };
184188
}

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)