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

Related issues

chriseth picture chriseth  路  3Comments

AnthonyAkentiev picture AnthonyAkentiev  路  3Comments

hiqua picture hiqua  路  4Comments

Dohtar1337 picture Dohtar1337  路  4Comments

area picture area  路  3Comments