Solidity: Deprecate `gasleft()` native method (GAS opcode)

Created on 21 Feb 2020  路  1Comment  路  Source: ethereum/solidity

Ethereum plans to remove support to GAS opcode, therefore this should be deprecated from Solidity, so developers get correctly advised to stop using it.

Contracts should be advised to externalize the parameters, having the msg.sender specifying the gasused in calldata, or whatever is the logic.

Caused by https://github.com/ethereum/EIPs/pull/2489

breaking change

Most helpful comment

I think it is too early to make this decision based on a draft EIP.

>All comments

I think it is too early to make this decision based on a draft EIP.

Was this page helpful?
0 / 5 - 0 ratings