diff --git a/Cargo.lock b/Cargo.lock index 0c81a27c..ef6b96c3 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 be337069..c21d3988 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" diff --git a/stylus-sdk/src/call/mod.rs b/stylus-sdk/src/call/mod.rs index 684eab60..9fa3df02 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)