Skip to content

Commit

Permalink
fix: remove problematic validation on estimateTxDependencies (#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
Torres-ssf authored Feb 5, 2024
1 parent e50b4d8 commit 60da199
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-pets-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/providers": minor
---

remove problematic validation on estimateTxDependencies
13 changes: 6 additions & 7 deletions packages/providers/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ import type {
TransactionRequest,
TransactionRequestInput,
CoinTransactionRequestInput,
ScriptTransactionRequest,
} from './transaction-request';
import { transactionRequestify, ScriptTransactionRequest } from './transaction-request';
import { transactionRequestify } from './transaction-request';
import type { TransactionResultReceipt } from './transaction-response';
import { TransactionResponse } from './transaction-response';
import { processGqlReceipt } from './transaction-summary/receipt';
Expand Down Expand Up @@ -729,13 +730,11 @@ export default class Provider {
return;
}

if (txRequest instanceof ScriptTransactionRequest) {
txRequest.addVariableOutputs(missingOutputVariableCount);
txRequest.addVariableOutputs(missingOutputVariableCount);

missingOutputContractIds.forEach(({ contractId }) =>
txRequest.addContractInputAndOutput(Address.fromString(contractId))
);
}
missingOutputContractIds.forEach(({ contractId }) =>
txRequest.addContractInputAndOutput(Address.fromString(contractId))
);

tries += 1;
} while (tries < MAX_RETRIES);
Expand Down

0 comments on commit 60da199

Please sign in to comment.