Skip to content

Commit cbced58

Browse files
committed
Bump revm v2.1.0
1 parent ca14d61 commit cbced58

File tree

7 files changed

+20
-5
lines changed

7 files changed

+20
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Because this is workspace with multi libraries, tags will be simplified, and with this document you can match version of project with git tag.
22

3+
# v16 tag
4+
date: 25.09.2022
5+
6+
* revm: v2.1.0
7+
38
# v15 tag
49
date: 10.09.2022
510

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bins/revm-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
bytes = "1.1"
99
hex = "0.4"
1010
primitive-types = { version = "0.11", features = ["rlp"] }
11-
revm = { path = "../../crates/revm", version = "2.0" }
11+
revm = { path = "../../crates/revm", version = "2.1" }
1212

1313
[[bin]]
1414
name = "analysis"

bins/revme/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ hex = "0.4"
1717
indicatif = "0.17"
1818
plain_hasher = "0.2"
1919
primitive-types = { version = "0.11", features = ["rlp", "serde"] }
20-
revm = { path = "../../crates/revm", version = "2.0", default-features = false, features = ["web3db","std","secp256k1"] }
20+
revm = { path = "../../crates/revm", version = "2.1", default-features = false, features = ["web3db","std","secp256k1"] }
2121
rlp = { version = "0.5", default-features = false }
2222
serde = "1.0"
2323
serde_derive = "1.0"

crates/revm/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# v2.1.0
2+
date: 25.09.2022
3+
4+
GasInspector added by Alexey Shekhirin and some helper functions.
5+
Changes:
6+
7+
* ca14d61 - gas inspector (#222) (7 days ago) <Alexey Shekhirin>
8+
* 1e25c99 - chore: expose original value on storageslot (#216) (13 days ago) <Matthias Seitz>
9+
* aa39d64 - feat: add Memory::shrink_to_fit (#215) (13 days ago) <Matthias Seitz
10+
111
# v2.0.0
212
date: 10.09.2022
313

crates/revm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords = ["no_std", "ethereum", "evm", "revm"]
66
license = "MIT"
77
name = "revm"
88
repository = "https://github.com/bluealloy/revm"
9-
version = "2.0.0"
9+
version = "2.1.0"
1010
readme = "../../README.md"
1111

1212
[dependencies]

crates/revm/src/gas/calc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn create2_cost(len: usize) -> Option<u64> {
5656
let base = CREATE;
5757
// ceil(len / 32.0)
5858
let len = len as u64;
59-
let sha_addup_base = (len / 32) + if (len % 32) == 0 { 0 } else { 1 };
59+
let sha_addup_base = (len / 32) + u64::from((len % 32) != 0);
6060
let sha_addup = SHA3WORD.checked_mul(sha_addup_base)?;
6161
let gas = base.checked_add(sha_addup)?;
6262

0 commit comments

Comments
 (0)