-
-
Notifications
You must be signed in to change notification settings - Fork 818
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
per EIP-6789 (https://eips.ethereum.org/EIPS/eip-6789), add `msg.mana` as an alias for `msg.gas` --------- Signed-off-by: Pascal Marco Caversaccio <[email protected]> Co-authored-by: Charles Cooper <[email protected]>
- Loading branch information
1 parent
a1af967
commit 9e51684
Showing
4 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def test_mana_call(get_contract): | ||
mana_call = """ | ||
@external | ||
def foo() -> uint256: | ||
return msg.mana | ||
""" | ||
|
||
c = get_contract(mana_call) | ||
|
||
assert c.foo(gas=50000) < 50000 | ||
assert c.foo(gas=50000) > 25000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters