Skip to content

Commit 3db7cb7

Browse files
authored
Merge pull request #13631 from Dev-Doggo/patch-2
Clarify that a contract without `receive` can still receive Ether through payable function calls
2 parents 0d0d51c + b787c32 commit 3db7cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/contracts/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ on plain Ether transfers (e.g. via ``.send()`` or ``.transfer()``). If no such
297297
function exists, but a payable :ref:`fallback function <fallback-function>`
298298
exists, the fallback function will be called on a plain Ether transfer. If
299299
neither a receive Ether nor a payable fallback function is present, the
300-
contract cannot receive Ether through regular transactions and throws an
300+
contract cannot receive Ether through a transaction that does not represent a payable function call and throws an
301301
exception.
302302

303303
In the worst case, the ``receive`` function can only rely on 2300 gas being

0 commit comments

Comments
 (0)