You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to deploy my contract in goerli, but it's not working, I don't know what happened
what command you ran
ape run main --network ethereum:goerli:alchemy
the code that caused the failure (see this link for help with formatting code)
from ape import accounts, project
from ape.cli import get_user_selected_account
def main():
account = get_user_selected_account()
account.deploy(project.ERC20)
full output of the error you received
Traceback (most recent call last):
File "/Users/shiqixiang/Documents/envs/apeenv/bin/ape", line 8, in <module>
sys.exit(cli())
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape/_cli.py", line 36, in invoke
return super().invoke(ctx)
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape_run/_cli.py", line 74, in invoke
return super().invoke(ctx)
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape/cli/commands.py", line 18, in invoke
super().invoke(ctx)
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape_run/_cli.py", line 146, in call
main_ns["main"]() # Execute the script
File "/Users/shiqixiang/MyProjects/blockchain/2023/7/maskwallet/scripts/main.py", line 7, in main
account.deploy(project.SignatureChecker)
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape/api/accounts.py", line 219, in deploy
receipt = contract._cache_wrap(lambda: self.call(txn, **kwargs))
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape/contracts/base.py", line 1326, in _cache_wrap
return function()
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape/api/accounts.py", line 219, in <lambda>
receipt = contract._cache_wrap(lambda: self.call(txn, **kwargs))
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape/api/accounts.py", line 140, in call
signed_txn = self.sign_transaction(txn, **signer_options)
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape_accounts/accounts.py", line 135, in sign_transaction
user_approves = self.__autosign or click.confirm(f"{txn}\n\nSign: ")
File "/Users/shiqixiang/Documents/envs/apeenv/lib/python3.10/site-packages/ape/api/transactions.py", line 175, in __str__
"0x" + bytes(data["data"][:3]).hex() + "..." + bytes(data["data"][-3:]).hex()
TypeError: string argument without an encoding
How can it be fixed?
I moved from 3.11 to 3.10 and the same thing still happens
The text was updated successfully, but these errors were encountered:
Environment information
ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):What went wrong?
Please include information like:
I'm going to deploy my contract in goerli, but it's not working, I don't know what happened
How can it be fixed?
I moved from 3.11 to 3.10 and the same thing still happens
The text was updated successfully, but these errors were encountered: