Closed SwapOperator closed 2 years ago
Hello! In general, we use test accounts that do not require y/N
for signing transactions, but you said you are running tests on the Rinkeby network so that is why you are probably using key-file accounts.
Thankfully, there is a solution for this! We have a method for enabling auto sign()...
account.set_autosign(True)
It will prompt you for a passphrase, but you can also pass it on to bypass that:
accounts.set_autosign(True, passphrase="123")
Please let me know if this resolves your issue! And thank you for using ape and reporting :)
Hello! In general, we use test accounts that do not require
y/N
for signing transactions, but you said you are running tests on the Rinkeby network so that is why you are probably using key-file accounts.Thankfully, there is a solution for this! We have a method for enabling auto sign()...
account.set_autosign(True)
It will prompt you for a passphrase, but you can also pass it on to bypass that:
accounts.set_autosign(True, passphrase="123")
Please let me know if this resolves your issue! And thank you for using ape and reporting :)
AttributeError: 'AccountManager' object has no attribute 'set_autosign'
It's interesting but I got error. I checked def auto_sign() recently, and it is definitely was in accounts.py
Thanks @fubuloubu and @unparalleled-js . The problem was solved
owner = accounts.load("trader03")
owner.set_autosign(True)
Environment information
ape
and plugin versions: 2.0, 2.1, plugins: 0.2.0 vyper, infura, etherscan, hardhat(was deleted)ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):What went wrong?
I decided to test my smart contracts with APE. For that I needed to install hardhat plugin. I did it through pycharm Python Interpreter. However, I needed to do a few more tests on Rinkeby before I ran "ape test". At this moment I found out a bug that ask me to sign tx on each transaction. I deleted hardhat plugin late, but it didn't help.
my first tx:
The message below after first tx:
reacts only positive only on Enter, y, n, N. But if I type n or N, the tx will continue to process.
If I type some random symbols:
I don't remember the exact version of APE i has before. But I'm sure it was older 2.0.
I tested on a new created env, but I still get with message again and again.
Please include information like:
How can it be fixed?
Fill this in if you have ideas on how the bug could be fixed.