Merge pull request #9749 from nikeshnazareth/fix-documentation-typo

Fix typo: "fallback" should be "receive"
This commit is contained in:
Leonardo 2020-09-07 10:07:43 +02:00 committed by GitHub
commit 90d356b3a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,7 +277,7 @@ neither a receive Ether nor a payable fallback function is present, the
contract cannot receive Ether through regular transactions and throws an contract cannot receive Ether through regular transactions and throws an
exception. exception.
In the worst case, the fallback function can only rely on 2300 gas being In the worst case, the ``receive`` function can only rely on 2300 gas being
available (for example when ``send`` or ``transfer`` is used), leaving little available (for example when ``send`` or ``transfer`` is used), leaving little
room to perform other operations except basic logging. The following operations room to perform other operations except basic logging. The following operations
will consume more gas than the 2300 gas stipend: will consume more gas than the 2300 gas stipend: