@@ -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);