diff --git a/.github/workflows/pr-release.yaml b/.github/workflows/pr-release.yaml index 9b48fc2352a..34ad25146b1 100644 --- a/.github/workflows/pr-release.yaml +++ b/.github/workflows/pr-release.yaml @@ -8,7 +8,7 @@ jobs: name: "Release PR to npm" runs-on: ubuntu-latest # comment out if:false to enable release PR to npm - if: false + # if: false permissions: write-all steps: - name: Checkout diff --git a/packages/program/src/functions/base-invocation-scope.ts b/packages/program/src/functions/base-invocation-scope.ts index 57d06e3f243..ce3dde34f77 100644 --- a/packages/program/src/functions/base-invocation-scope.ts +++ b/packages/program/src/functions/base-invocation-scope.ts @@ -471,24 +471,12 @@ export class BaseInvocationScope { const gasLimitSpecified = !!this.txParameters?.gasLimit || this.hasCallParamsGasLimit; const gasPriceSpecified = !!this.txParameters?.gasPrice; - const { gasLimit, gasPrice } = transactionRequest; - if (!gasLimitSpecified) { transactionRequest.gasLimit = gasUsed; - } else if (gasLimit.lt(gasUsed)) { - throw new FuelError( - ErrorCode.GAS_LIMIT_TOO_LOW, - `Gas limit '${gasLimit}' is lower than the required: '${gasUsed}'.` - ); } if (!gasPriceSpecified) { transactionRequest.gasPrice = minGasPrice; - } else if (gasPrice.lt(minGasPrice)) { - throw new FuelError( - ErrorCode.GAS_PRICE_TOO_LOW, - `Gas price '${gasPrice}' is lower than the required: '${minGasPrice}'.` - ); } } }