@btc-vision/transaction 1.0.109 → 1.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,6 +98,9 @@ export class TransactionFactory {
|
|
|
98
98
|
const preTransaction = new DeploymentTransaction(deploymentParameters);
|
|
99
99
|
await preTransaction.signTransaction();
|
|
100
100
|
const parameters = await preTransaction.getFundingTransactionParameters();
|
|
101
|
+
parameters.amount =
|
|
102
|
+
(await preTransaction.estimateTransactionFees()) +
|
|
103
|
+
this.getPriorityFee(deploymentParameters);
|
|
101
104
|
const fundingTransaction = new FundingTransaction(parameters);
|
|
102
105
|
const signedTransaction = await fundingTransaction.signTransaction();
|
|
103
106
|
if (!signedTransaction) {
|
package/package.json
CHANGED
|
@@ -230,6 +230,10 @@ export class TransactionFactory {
|
|
|
230
230
|
const parameters: IFundingTransactionParameters =
|
|
231
231
|
await preTransaction.getFundingTransactionParameters();
|
|
232
232
|
|
|
233
|
+
parameters.amount =
|
|
234
|
+
(await preTransaction.estimateTransactionFees()) +
|
|
235
|
+
this.getPriorityFee(deploymentParameters);
|
|
236
|
+
|
|
233
237
|
const fundingTransaction: FundingTransaction = new FundingTransaction(parameters);
|
|
234
238
|
const signedTransaction: Transaction = await fundingTransaction.signTransaction();
|
|
235
239
|
if (!signedTransaction) {
|