Skip to content

Commit

Permalink
Bump revm v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Sep 25, 2022
1 parent ca14d61 commit cbced58
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Because this is workspace with multi libraries, tags will be simplified, and with this document you can match version of project with git tag.

# v16 tag
date: 25.09.2022

* revm: v2.1.0

# v15 tag
date: 10.09.2022

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion bins/revm-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
bytes = "1.1"
hex = "0.4"
primitive-types = { version = "0.11", features = ["rlp"] }
revm = { path = "../../crates/revm", version = "2.0" }
revm = { path = "../../crates/revm", version = "2.1" }

[[bin]]
name = "analysis"
Expand Down
2 changes: 1 addition & 1 deletion bins/revme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ hex = "0.4"
indicatif = "0.17"
plain_hasher = "0.2"
primitive-types = { version = "0.11", features = ["rlp", "serde"] }
revm = { path = "../../crates/revm", version = "2.0", default-features = false, features = ["web3db","std","secp256k1"] }
revm = { path = "../../crates/revm", version = "2.1", default-features = false, features = ["web3db","std","secp256k1"] }
rlp = { version = "0.5", default-features = false }
serde = "1.0"
serde_derive = "1.0"
Expand Down
10 changes: 10 additions & 0 deletions crates/revm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# v2.1.0
date: 25.09.2022

GasInspector added by Alexey Shekhirin and some helper functions.
Changes:

* ca14d61 - gas inspector (#222) (7 days ago) <Alexey Shekhirin>
* 1e25c99 - chore: expose original value on storageslot (#216) (13 days ago) <Matthias Seitz>
* aa39d64 - feat: add Memory::shrink_to_fit (#215) (13 days ago) <Matthias Seitz

# v2.0.0
date: 10.09.2022

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

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/gas/calc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub fn create2_cost(len: usize) -> Option<u64> {
let base = CREATE;
// ceil(len / 32.0)
let len = len as u64;
let sha_addup_base = (len / 32) + if (len % 32) == 0 { 0 } else { 1 };
let sha_addup_base = (len / 32) + u64::from((len % 32) != 0);
let sha_addup = SHA3WORD.checked_mul(sha_addup_base)?;
let gas = base.checked_add(sha_addup)?;

Expand Down

0 comments on commit cbced58

Please sign in to comment.