Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 539 Bytes

Message_call_with_hardcoded_gas_amount.md

File metadata and controls

1 lines (1 loc) · 539 Bytes

The transfer() and send() functions forward a fixed amount of 2300 gas. Historically, it has often been recommended to use these functions for value transfers to guard against reentrancy attacks. However, the gas cost of EVM instructions may change significantly during hard forks which may break already deployed contract systems that make fixed assumptions about gas costs. For example. EIP 1884 broke several existing smart contracts due to a cost increase in the SLOAD instruction.