The difference between address.send() and address.transfer() is:
A) .send returns a Boolean and .transfer throws an exception on error. Both just forward the gasstipend of 2300 gas and are considered safe against re-entrancy.
B) .send throws an exception and .transfer returns a Boolean on error. Both just forward the gasstipend of 2300 gas and considered safe against re-entrancy
C) .send returns a Boolean and .transfer throws an exception on error. .send is considered dangerous, because it sends all gas along, while .transfer only sends the gas stipend of 2300 gas along
D) .send and .transfer are both considered low-level functions which are dangerous, because they send all gas along. It's better to use address.call.value() () to control the gas-amount.
Correct Answer:
Verified
Q51: It's not possible to use inheritance from
Q52: Unit-Testing on a local chain is important,
Q53: To generate a random number:
A) it's good
Q54: Inheritance is useful, because a contract that
Q55: All low-level functions on the address, so
Q57: When defining a new datatype:
A) its best
Q58: Truffle has an integrated in-memory blockchain which
Q59: What is the difference between ERC20 and
Q60: When a smart contract pays out money:
A)
Q61: When solidity is compiled then also Metadata
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents