Skip to content

Commit

Permalink
Merge pull request #76 from OffchainLabs/new-delegate
Browse files Browse the repository at this point in the history
Fix delegate_call
  • Loading branch information
rachel-bousfield authored Nov 28, 2023
2 parents 18bc2c1 + 445f238 commit d5d2f61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion stylus-sdk/src/call/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d5d2f61

Please sign in to comment.