Skip to content

Commit cac121f

Browse files
author
nowto
authored
fix:code wrong.
example ‘Safe Remote Purchase' modifier 'condition' has wrong
1 parent b322ad6 commit cac121f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

solidity-by-example.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,7 @@
474474
}
475475

476476
modifier condition(bool _condition) {
477-
require(
478-
msg.sender == buyer,
479-
"Only buyer can call this."
480-
);
477+
require(_condition);
481478
_;
482479
}
483480

0 commit comments

Comments
 (0)