Hmm, I was under the impression that .send is the dangerous one because it sends all the gas, while .transfer only sends the 2300 gas stipend. But I could be wrong.
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.
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
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.
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.
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
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
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.
I think the difference is that .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.
Sanjuana
2 months agoFrancine
1 months agoThersa
1 months agoHyman
1 months agoLachelle
2 months agoBrittni
2 months agoLachelle
2 months agoKenny
2 months agoLemuel
1 months agoJustine
2 months agoHelaine
2 months agoEvangelina
2 months agoShonda
2 months agoFlorinda
1 months agoBillye
1 months ago