Skip to content

Commit

Permalink
Merge pull request #115 from moonstream-to/fix-pure-methods
Browse files Browse the repository at this point in the history
Added state mutability pure bypass for get_transaction_config
  • Loading branch information
zomglings authored Aug 20, 2023
2 parents ef33c79 + a8768e9 commit 9db4f25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion moonworm/generators/brownie.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,10 @@ def generate_cli_handler(

# If a transaction is required, extract transaction parameters from CLI
requires_transaction = True
if function_abi["stateMutability"] == "view":
if (
function_abi["stateMutability"] == "view"
or function_abi["stateMutability"] == "pure"
):
requires_transaction = False

if requires_transaction:
Expand Down
2 changes: 1 addition & 1 deletion moonworm/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MOONWORM_VERSION = "0.7.0"
MOONWORM_VERSION = "0.7.1"

0 comments on commit 9db4f25

Please sign in to comment.