Blockchain CBDE Exam - Topic 2 Question 102 Discussion
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.
Leslie
6 months agoCarmelina
7 months agoTrinidad
7 months agoDahlia
7 months agoCaprice
7 months agoLindsey
7 months agoMaryann
8 months agoDominque
8 months agoKassandra
8 months agoLoreta
8 months agoGlory
8 months agoLamar
8 months agoBelen
8 months agoEdison
8 months agoSanjuana
2 years agoFrancine
2 years agoThersa
2 years agoHyman
2 years agoLachelle
2 years agoBrittni
2 years agoLachelle
2 years agoKenny
2 years agoLemuel
2 years agoJustine
2 years agoHelaine
2 years agoEvangelina
2 years agoShonda
2 years agoFlorinda
2 years agoBillye
2 years ago