Skip to content

Commit

Permalink
bump: alloy core and use PrimitiveSignature (#1954)
Browse files Browse the repository at this point in the history
* bump: alloy core and use PrimitiveSignature

* bump version
  • Loading branch information
rakita authored Dec 26, 2024
1 parent 8507c1c commit d6b90a0
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ devnet-5 release.
* `revme`: 2.1.0 -> 2.2.0
* `revm`: 18.0.0 -> 19.0.0
* `revm-interpreter`: 14.0.0 -> 15.0.0
* `revm-primitives`: 14.0.0 -> 15.0.0
* `revm-primitives`: 14.0.0 -> 15.1.0
* `revm-precompile`: 15.0.0 -> 16.0.0

# v50 tag
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions bins/revme/src/cmd/statetest/models/eip7702.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use alloy_rlp::{Decodable, Error as RlpError, Header};
use revm::primitives::{AccessList, Bytes, Signature, SignedAuthorization, TxKind, U256};
use revm::primitives::{AccessList, Bytes, PrimitiveSignature, SignedAuthorization, TxKind, U256};
use std::vec::Vec;

/// TODO remove it when new tests are generated that has a Authorization json field.
Expand Down Expand Up @@ -67,7 +67,7 @@ pub struct TxEip7702 {
/// Input as data, or if `to` is [`TxKind::Call`]: An unlimited size byte array specifying the
/// input data of the message call, formally Td.
pub input: Bytes,
pub signature: Signature,
pub signature: PrimitiveSignature,
}

impl TxEip7702 {
Expand Down Expand Up @@ -97,7 +97,7 @@ impl TxEip7702 {
input: Decodable::decode(buf)?,
access_list: Decodable::decode(buf)?,
authorization_list: Decodable::decode(buf)?,
signature: Signature::decode_rlp_vrs(buf)?,
signature: PrimitiveSignature::decode_rlp_vrs(buf, bool::decode)?,
})
}

Expand Down
2 changes: 1 addition & 1 deletion crates/interpreter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rust_2018_idioms = "deny"
all = "warn"

[dependencies]
revm-primitives = { path = "../primitives", version = "15.0.0", default-features = false }
revm-primitives = { path = "../primitives", version = "15.1.0", default-features = false }

paste = { version = "1.0", optional = true }
phf = { version = "0.11", default-features = false, optional = true, features = [
Expand Down
2 changes: 1 addition & 1 deletion crates/precompile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rust_2018_idioms = "deny"
all = "warn"

[dependencies]
revm-primitives = { path = "../primitives", version = "15.0.0", default-features = false }
revm-primitives = { path = "../primitives", version = "15.1.0", default-features = false }
once_cell = { version = "1.19", default-features = false, features = ["alloc"] }

# ecRecover
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [15.0.0](https://github.com/bluealloy/revm/compare/revm-primitives-v14.0.0...revm-primitives-v15.0.0) - 2024-12-26
## [15.1.0](https://github.com/bluealloy/revm/compare/revm-primitives-v14.0.0...revm-primitives-v15.1.0) - 2024-12-26

### Added

Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["no_std", "ethereum", "evm", "revm", "types"]
license = "MIT"
name = "revm-primitives"
repository = "https://github.com/bluealloy/revm"
version = "15.0.0"
version = "15.1.0"
readme = "../../README.md"

[package.metadata.docs.rs]
Expand Down
4 changes: 2 additions & 2 deletions crates/primitives/src/eip7702.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ pub mod authorization_list;
pub mod bytecode;

pub use authorization_list::{
Authorization, AuthorizationList, RecoveredAuthority, RecoveredAuthorization, Signature,
SignedAuthorization,
Authorization, AuthorizationList, PrimitiveSignature, RecoveredAuthority,
RecoveredAuthorization, SignedAuthorization,
};
pub use bytecode::{
Eip7702Bytecode, Eip7702DecodeError, EIP7702_MAGIC, EIP7702_MAGIC_BYTES, EIP7702_MAGIC_HASH,
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/eip7702/authorization_list.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub use alloy_eip7702::{
Authorization, RecoveredAuthority, RecoveredAuthorization, SignedAuthorization,
};
pub use alloy_primitives::Signature;
pub use alloy_primitives::PrimitiveSignature;

use std::{boxed::Box, vec::Vec};

Expand Down
6 changes: 3 additions & 3 deletions crates/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ pub use bitvec;
pub use bytecode::*;
pub use constants::*;
pub use eip7702::{
Authorization, AuthorizationList, Eip7702Bytecode, Eip7702DecodeError, RecoveredAuthority,
RecoveredAuthorization, Signature, SignedAuthorization, EIP7702_MAGIC, EIP7702_MAGIC_BYTES,
EIP7702_MAGIC_HASH,
Authorization, AuthorizationList, Eip7702Bytecode, Eip7702DecodeError, PrimitiveSignature,
RecoveredAuthority, RecoveredAuthorization, SignedAuthorization, EIP7702_MAGIC,
EIP7702_MAGIC_BYTES, EIP7702_MAGIC_HASH,
};
pub use env::*;

Expand Down

0 comments on commit d6b90a0

Please sign in to comment.