CREATE uses RLP, not ABI-encoding

This commit is contained in:
Luke Parker
2025-01-27 04:23:50 -05:00
parent e742a6b0ec
commit 75c6427d7c
3 changed files with 115 additions and 87 deletions

View File

@@ -23,8 +23,8 @@ const CHAIN_ID: U256 = U256::from_be_slice(&[1]);
pub(crate) type GasEstimator = Evm<'static, (), InMemoryDB>;
impl Router {
const NONCE_STORAGE_SLOT: U256 = U256::from_be_slice(&[1]);
const SERAI_KEY_STORAGE_SLOT: U256 = U256::from_be_slice(&[3]);
const NONCE_STORAGE_SLOT: U256 = U256::from_be_slice(&[0]);
const SERAI_KEY_STORAGE_SLOT: U256 = U256::from_be_slice(&[2]);
// Gas allocated for ERC20 calls
#[cfg(test)]
@@ -46,11 +46,11 @@ impl Router {
the correct set of prices for the network they're operating on.
*/
/// The gas used by `confirmSeraiKey`.
pub const CONFIRM_NEXT_SERAI_KEY_GAS: u64 = 57_736;
pub const CONFIRM_NEXT_SERAI_KEY_GAS: u64 = 57_764;
/// The gas used by `updateSeraiKey`.
pub const UPDATE_SERAI_KEY_GAS: u64 = 60_045;
pub const UPDATE_SERAI_KEY_GAS: u64 = 60_073;
/// The gas used by `escapeHatch`.
pub const ESCAPE_HATCH_GAS: u64 = 61_094;
pub const ESCAPE_HATCH_GAS: u64 = 44_037;
/// The key to use when performing gas estimations.
///