@@ -3,7 +3,7 @@ import BigNumber from 'bignumber.js';
33import { BaseTransactionBuilder , BuildTransactionError , BaseAddress , SigningError , BaseKey } from '@bitgo/sdk-core' ;
44import { Transaction } from './transaction' ;
55import utils from './utils' ;
6- import { IcpTransactionData } from './iface' ;
6+ import { IcpTransactionData , Signatures } from './iface' ;
77import { SignedTransactionBuilder } from './signedTransactionBuilder' ;
88
99export abstract class TransactionBuilder extends BaseTransactionBuilder {
@@ -19,6 +19,14 @@ export abstract class TransactionBuilder extends BaseTransactionBuilder {
1919 this . _transaction = new Transaction ( _coinConfig , utils ) ;
2020 }
2121
22+ get signaturePayload ( ) : Signatures [ ] {
23+ return this . _transaction . signaturePayload ;
24+ }
25+
26+ get unsignedTransaction ( ) : string {
27+ return this . _transaction . payloadsData . unsigned_transaction ;
28+ }
29+
2230 /**
2331 * Sets the public key and the address of the sender of this transaction.
2432 *
@@ -147,7 +155,7 @@ export abstract class TransactionBuilder extends BaseTransactionBuilder {
147155 }
148156
149157 // combine the unsigned transaction with the signature payload and generates the signed transaction
150- protected combine ( ) : void {
158+ public combine ( ) : void {
151159 const signedTransactionBuilder = new SignedTransactionBuilder (
152160 this . _transaction . unsignedTransaction ,
153161 this . _transaction . signaturePayload
0 commit comments