Skip to content

Commit

Permalink
Merge pull request #5427 from BitGo/add-fee-pub
Browse files Browse the repository at this point in the history
fix(sdk-coin-apt): add getter for feePayer pubkey
  • Loading branch information
at31416 authored Jan 24, 2025
2 parents ac9b92d + 92a23c6 commit 979d800
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/sdk-coin-apt/src/lib/transaction/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ export abstract class Transaction extends BaseTransaction {
this._senderSignature = { publicKey, signature };
}

getFeePayerPubKey(): string {
return this._feePayerSignature.publicKey.pub;
}

addFeePayerSignature(publicKey: PublicKey, signature: Buffer): void {
this._feePayerSignature = { publicKey, signature };
}
Expand Down
4 changes: 4 additions & 0 deletions modules/sdk-coin-apt/src/lib/transactionBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,8 @@ export abstract class TransactionBuilder extends BaseTransactionBuilder {
addFeePayerAddress(address: string): void {
this.transaction.addFeePayerAddress(address);
}

getFeePayerPubKey(): string {
return this.transaction.getFeePayerPubKey();
}
}

0 comments on commit 979d800

Please sign in to comment.