Commit dbf4f28c authored by Kelvin Fichter's avatar Kelvin Fichter Committed by GitHub

Temporarily disable gas checks (#135)

parent 007e4fa3
...@@ -78,11 +78,12 @@ contract OVM_ECDSAContractAccount is iOVM_ECDSAContractAccount { ...@@ -78,11 +78,12 @@ contract OVM_ECDSAContractAccount is iOVM_ECDSAContractAccount {
"Transaction nonce does not match the expected nonce." "Transaction nonce does not match the expected nonce."
); );
// Need to make sure that the gas is sufficient to execute the transaction. // TEMPORARY: Disable gas checks for minnet.
Lib_SafeExecutionManagerWrapper.safeREQUIRE( // // Need to make sure that the gas is sufficient to execute the transaction.
gasleft() >= Lib_SafeMathWrapper.add(decodedTx.gasLimit, EXECUTION_VALIDATION_GAS_OVERHEAD), // Lib_SafeExecutionManagerWrapper.safeREQUIRE(
"Gas is not sufficient to execute the transaction." // gasleft() >= Lib_SafeMathWrapper.add(decodedTx.gasLimit, EXECUTION_VALIDATION_GAS_OVERHEAD),
); // "Gas is not sufficient to execute the transaction."
// );
// Transfer fee to relayer. // Transfer fee to relayer.
address relayer = Lib_SafeExecutionManagerWrapper.safeCALLER(); address relayer = Lib_SafeExecutionManagerWrapper.safeCALLER();
......
...@@ -241,7 +241,8 @@ describe('OVM_ECDSAContractAccount', () => { ...@@ -241,7 +241,8 @@ describe('OVM_ECDSAContractAccount', () => {
) )
}) })
it(`should revert on insufficient gas`, async () => { // TEMPORARY: Skip gas checks for minnet.
it.skip(`should revert on insufficient gas`, async () => {
const alteredInsufficientGasTx = { const alteredInsufficientGasTx = {
...DEFAULT_EIP155_TX, ...DEFAULT_EIP155_TX,
gasLimit: 200000000, gasLimit: 200000000,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment