Skip to content

Move msg.gas to global level as gasleft() #2971

@axic

Description

@axic

Similarly to #2970 I think msg.gas is very misleading as it seems to suggest the gaslimit for that given message, which is immutable, but rather it is a mutable gas left property.

I'd argue it makes more sense making it a global function named gasleft() (alternatively gasleft as a property similar to <address>.balance).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions