tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
54 stars 41 forks source link

feat: send excessive funds from receiver function back to the sender #232

Closed novusnota closed 4 months ago

novusnota commented 4 months ago

Closes #231

Alternatively, we may just send null in self.notify(), but that would be less descriptive, so I went with the same approach used in @stdlib/deploy. And so it "notifies" the sender about the AddOk message, alongside with returning remaining value from the obtained message (implicitly)

UPD: Decided to just use self.notify("Cashback".asComment());