Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Conversation

@clabby
Copy link

@clabby clabby commented Sep 16, 2023

Overview

Resolves all conflicts over a fairly large refactor in upstream REVM for 4844 and RETH's revm state integration.

@clabby clabby requested a review from refcell September 16, 2023 16:27
Comment on lines -161 to +168
let tx_caller = env.tx.caller;
let tx_data = &env.tx.data;
let tx_is_create = env.tx.transact_to.is_create();

let initial_gas_spend = initial_tx_gas::<GSPEC>(tx_data, tx_is_create, &env.tx.access_list);
let initial_gas_spend = initial_tx_gas::<GSPEC>(
&env.tx.data,
env.tx.transact_to.is_create(),
&env.tx.access_list,
);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the only conflict in the evm_impl.

@@ -1,6 +1,9 @@
#![allow(non_camel_case_types)]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way SpecIds are implemented changed, there's now a direct enabled fn on the SpecId enum itself. I've added support for this and two more tests mirroring the other ones on the Spec trait impl.

}
}
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some conflicts in this file; Mostly minimal around 4844 errors etc.

///
/// [EIP-2930]: https://eips.ethereum.org/EIPS/eip-2930
pub access_list: Vec<(B160, Vec<U256>)>,

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicts in the env for 4844 support; Not too hard to resolve, new fields for blob txs.

@clabby clabby self-assigned this Sep 16, 2023
Copy link

@refcell refcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@refcell refcell merged commit 3c7878a into clabby/op-revm Sep 17, 2023
@refcell refcell deleted the cl/merge-revm-upgrades branch September 27, 2023 23:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants