Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Raise warning if
value=
is specified for anything but a `paya…
…ble` function [APE-1283] (#1599) * added option for setting the password to unlock accounts from env variables and docs updated * code formmated for according to black & fixed type-check * added option for setting the password to unlock accounts from env variables and docs updated * Update docs/userguides/accounts.md Co-authored-by: antazoey <admin@antazoey.me> * Update docs/userguides/accounts.md Co-authored-by: antazoey <admin@antazoey.me> * Update docs/userguides/accounts.md Co-authored-by: antazoey <admin@antazoey.me> * updated passphrase arg type from Optional to str * Update docs/userguides/accounts.md Co-authored-by: antazoey <admin@antazoey.me> * added tests for loading passphrase from env & sign * feat: Raise warning if value= is specified for anything but a payable function [APE-874] #1396 * indentation fixed with black * Update src/ape/contracts/base.py Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> * made a separate exception class for the exception. code refactored * indentation fixed with black & test added but it's broken. need help * indentation fixed with black & test added but it's broken. need help * proper exception added * test_sending_funds_to_non_payable_constructor_by_contractContainerDeploy test added & working on test_sending_funds_to_non_payable_constructor_by_accountDeploy * test_sending_funds_to_non_payable_constructor_by_contractContainerDeploy test added & test_sending_funds_to_non_payable_constructor_by_accountDeploy & hopefully final commit. file updated, ~ape/api/accounts.py, ~ape/contracts/base.py, ~ape/exceptions.py, tests/functional/test_contract_instance.py * ran the fomatter script to pass the linting tests * fixed the mess created by flake8. Opps :( * SendingFundsToNonPayableConstructorError renamed to MethodNonPayableError & exception type changed from ApeException to ContractError * SendingFundsToNonPayableConstructorError renamed to MethodNonPayableError & exception type changed from ApeException to ContractError. fixing the last blunder * MethodNonPayableError exception type changed from ApeException to ContractError * Update src/ape/exceptions.py --------- Co-authored-by: antazoey <admin@antazoey.me> Co-authored-by: antazoey <jules@apeworx.io> Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com>
- Loading branch information