Skip to content

Commit

Permalink
Fix #[receive] in proc test
Browse files Browse the repository at this point in the history
  • Loading branch information
gligneul committed Jan 15, 2025
1 parent 032175b commit 9ecdcbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stylus-proc/tests/public.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ impl Contract {
}

#[receive]
fn receive(&mut self) {}
fn receive(&mut self) -> Result<(), Vec<u8>> {
Ok(())
}

#[constructor]
fn constructor(&mut self, value: U256) {
Expand Down

0 comments on commit 9ecdcbd

Please sign in to comment.