Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
feat: send excessive funds from receiver function back to the sender (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota authored May 25, 2024
1 parent 53a77a1 commit e234dd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ contract SimpleCounter with Deployable {
receive(msg: Add) {
self.counter += msg.amount;
// Notify the caller that the receiver was executed and forward remaining value back
self.notify("Cashback".asComment());
}
get fun counter(): Int {
Expand Down

0 comments on commit e234dd4

Please sign in to comment.