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 {
"Transaction nonce does not match the expected nonce."
);
// Need to make sure that the gas is sufficient to execute the transaction.
Lib_SafeExecutionManagerWrapper.safeREQUIRE(
gasleft() >= Lib_SafeMathWrapper.add(decodedTx.gasLimit, EXECUTION_VALIDATION_GAS_OVERHEAD),
"Gas is not sufficient to execute the transaction."
);
// TEMPORARY: Disable gas checks for minnet.
// // Need to make sure that the gas is sufficient to execute the transaction.
// Lib_SafeExecutionManagerWrapper.safeREQUIRE(
// gasleft() >= Lib_SafeMathWrapper.add(decodedTx.gasLimit, EXECUTION_VALIDATION_GAS_OVERHEAD),
// "Gas is not sufficient to execute the transaction."
// );
// Transfer fee to relayer.
address relayer = Lib_SafeExecutionManagerWrapper.safeCALLER();
......
......@@ -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 = {
...DEFAULT_EIP155_TX,
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