diff --git a/docs/online.html b/docs/online.html index b4aa4a7..e6e3a64 100644 --- a/docs/online.html +++ b/docs/online.html @@ -235,14 +235,22 @@ - + + + + + + +
@@ -445,6 +453,7 @@ nonceError: null, estimatedGas: null, // TODO: Delete gasLimit: null, + gasLimitError: null, transactionType: 2, gasPrice: null, lastBaseFeePerGas: null, // TODO: Delete @@ -955,6 +964,11 @@ this.prepare.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas.toString(); this.prepare.gasPrice = feeData.gasPrice.toString(); } + if (this.prepare.estimatedGas) { + this.prepare.gasLimitError = (this.prepare.gasLimit == null || this.prepare.gasLimit < this.prepare.estimatedGas) && ("Warning - GasLimit < estimatedGas: " + this.prepare.estimatedGas) || null; + } else { + this.prepare.gasLimitError = null; + } console.log(moment().format("HH:mm:ss") + " prepareSimulate - AFTER: " + JSON.stringify(this.prepare, bigNumberReplacer, 2)); // this.saveSettings(); localStorage.topSecretsOnlinePrepare = JSON.stringify(this.prepare);