Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Dec 20, 2024
1 parent b23e212 commit 8672aac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions stylus-sdk/src/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ where
if input.is_empty() {
console!("no calldata provided");
if let Some(res) = R::receive(&mut storage) {
if let Err(e) = res {
return Err(e);
}
return Ok(Vec::new());
return res.map(|_| Vec::new());
}
// Try fallback function with no inputs if defined.
if let Some(res) = R::fallback(&mut storage, &[]) {
Expand Down

0 comments on commit 8672aac

Please sign in to comment.