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

Commit 10a0496

Browse files
authored
Update pages/book/functions.mdx
1 parent 4c9d4e9 commit 10a0496

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pages/book/functions.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ You can allow the contract inheriting a [traits](/book/types#traits) to modify a
3030
```tact
3131
trait FilterTrait with Ownable {
3232
virtual fun filterMessage(): Bool { // virtual functions can be overridden by users of this trait
33-
if (sender() == self.owner) {
34-
return false;
35-
}
36-
return true;
33+
return sender() != self.owner;
3734
}
3835
3936
abstract fun specialFilter(): Bool;

0 commit comments

Comments
 (0)