Skip to content

Commit

Permalink
Fix delegate_call
Browse files Browse the repository at this point in the history
`delegate_call` was calling `RawCall::new_with_value` instead of `RawCall::new_delegate`
  • Loading branch information
joshuacolvin0 committed Oct 10, 2023
1 parent 39abd9c commit 096843a
Showing 1 changed file with 1 addition and 1 deletion.
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 096843a

Please sign in to comment.