Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadkaouk committed Dec 18, 2023
1 parent 2dc3732 commit ae71260
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frame/evm/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -703,13 +703,11 @@ mod storage_growth_test {
let result = create_test_contract(PROOF_SIZE_TEST_CALLEE_CONTRACT_BYTECODE, gas_limit)
.expect("create succeeds");

// Assert that the legacy gas is lower than the gas limit.
assert!(result.used_gas.standard < U256::from(gas_limit));
assert_eq!(
result.exit_reason,
crate::ExitReason::Error(crate::ExitError::OutOfGas)
);
assert_eq!(result.used_gas.effective.as_u64(), 78485);
assert_eq!(result.used_gas.effective.as_u64(), 80000);
// Assert that the contract entry does not exists in the storage.
assert!(!AccountCodes::<Test>::contains_key(result.value));
});
Expand Down

0 comments on commit ae71260

Please sign in to comment.