From 33242e64bfb293c48cee44f93cf3b18b3e6b2632 Mon Sep 17 00:00:00 2001 From: Oleksandr Anyshchenko Date: Fri, 22 Sep 2023 17:42:48 +0100 Subject: [PATCH] fix: use full path to vec macro --- .github/workflows/rust.yml | 2 ++ core/Cargo.toml | 2 +- core/src/lib.rs | 2 +- gasometer/Cargo.toml | 4 ++-- runtime/Cargo.toml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 55c5b9678..1161fcb5e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/core/Cargo.toml b/core/Cargo.toml index a2345192e..bcb329417 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evm-core" -version = "0.39.0" +version = "0.39.1" license = "Apache-2.0" authors = ["Wei Tang ", "Parity Technologies "] description = "Portable Ethereum Virtual Machine implementation written in pure Rust." diff --git a/core/src/lib.rs b/core/src/lib.rs index 627d4b998..822a7c715 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -127,7 +127,7 @@ impl Machine { #[must_use] pub fn return_value(&self) -> Vec { 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(), diff --git a/gasometer/Cargo.toml b/gasometer/Cargo.toml index d6d63fe8e..28af70d5c 100644 --- a/gasometer/Cargo.toml +++ b/gasometer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evm-gasometer" -version = "0.39.0" +version = "0.39.1" license = "Apache-2.0" authors = ["Wei Tang ", "Parity Technologies "] description = "Portable Ethereum Virtual Machine implementation written in pure Rust." @@ -30,4 +30,4 @@ tracing = [ force-debug = [ "log", -] \ No newline at end of file +] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 867264196..4250ac0eb 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evm-runtime" -version = "0.39.0" +version = "0.39.1" license = "Apache-2.0" authors = ["Wei Tang ", "Parity Technologies "] description = "SputnikVM - a Portable Blockchain Virtual Machine"