Skip to content

Commit

Permalink
Merge pull request #32 from aurora-is-near/chore/aleksuss/no_std_fix
Browse files Browse the repository at this point in the history
fix: use full path to vec macro
  • Loading branch information
mrLSD authored Sep 22, 2023
2 parents 016e449 + 33242e6 commit 0334a09
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Build NoStd
run: cargo build --no-default-features --verbose
- name: Build for feature (tracing)
run: cargo build --features tracing --verbose
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "evm-core"
version = "0.39.0"
version = "0.39.1"
license = "Apache-2.0"
authors = ["Wei Tang <[email protected]>", "Parity Technologies <[email protected]>"]
description = "Portable Ethereum Virtual Machine implementation written in pure Rust."
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl Machine {
#[must_use]
pub fn return_value(&self) -> Vec<u8> {
if self.return_range.start > U256::from(usize::MAX) {
vec![0; (self.return_range.end - self.return_range.start).as_usize()]
alloc::vec![0; (self.return_range.end - self.return_range.start).as_usize()]
} else if self.return_range.end > U256::from(usize::MAX) {
let mut ret = self.memory.get(
self.return_range.start.as_usize(),
Expand Down
4 changes: 2 additions & 2 deletions gasometer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "evm-gasometer"
version = "0.39.0"
version = "0.39.1"
license = "Apache-2.0"
authors = ["Wei Tang <[email protected]>", "Parity Technologies <[email protected]>"]
description = "Portable Ethereum Virtual Machine implementation written in pure Rust."
Expand Down Expand Up @@ -30,4 +30,4 @@ tracing = [

force-debug = [
"log",
]
]
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "evm-runtime"
version = "0.39.0"
version = "0.39.1"
license = "Apache-2.0"
authors = ["Wei Tang <[email protected]>", "Parity Technologies <[email protected]>"]
description = "SputnikVM - a Portable Blockchain Virtual Machine"
Expand Down

0 comments on commit 0334a09

Please sign in to comment.