From 096843ab2efab484699d33ce438364a9153a71b8 Mon Sep 17 00:00:00 2001 From: Joshua Colvin Date: Tue, 10 Oct 2023 13:48:33 -0700 Subject: [PATCH 1/2] Fix delegate_call `delegate_call` was calling `RawCall::new_with_value` instead of `RawCall::new_delegate` --- stylus-sdk/src/call/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylus-sdk/src/call/mod.rs b/stylus-sdk/src/call/mod.rs index 684eab6..9fa3df0 100644 --- a/stylus-sdk/src/call/mod.rs +++ b/stylus-sdk/src/call/mod.rs @@ -71,7 +71,7 @@ pub unsafe fn delegate_call( #[cfg(all(feature = "storage-cache", feature = "reentrant"))] Storage::clear(); // clear the storage to persist changes, invalidating the cache - RawCall::new_with_value(context.value()) + RawCall::new_delegate() .gas(context.gas()) .call(to, data) .map_err(Error::Revert) From 445f23827566fdb5a410ce7d8fa3125ed16f6237 Mon Sep 17 00:00:00 2001 From: Rachel Bousfield Date: Tue, 28 Nov 2023 13:51:27 -0700 Subject: [PATCH 2/2] bump version --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0c81a27..ef6b96c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -434,7 +434,7 @@ dependencies = [ [[package]] name = "stylus-proc" -version = "0.4.1" +version = "0.4.2" dependencies = [ "alloy-primitives", "alloy-sol-types", @@ -451,7 +451,7 @@ dependencies = [ [[package]] name = "stylus-sdk" -version = "0.4.1" +version = "0.4.2" dependencies = [ "alloy-primitives", "alloy-sol-types", diff --git a/Cargo.toml b/Cargo.toml index be33706..c21d398 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["stylus-sdk", "stylus-proc"] resolver = "2" [workspace.package] -version = "0.4.1" +version = "0.4.2" edition = "2021" authors = ["Offchain Labs"] license = "MIT OR Apache-2.0"