我想运行这段代码:
from brownie import accounts, config, network
from brownie import AdvancedCollectible
from scripts.helpful_scripts import fund_advanced_collectible
def main():
dev = accounts.add(config['wallets']['from_key'])
print(network.show_active())
publish_source = False
advancedCollectible = AdvancedCollectible.deploy(
config['networks'][network.show_active()]['vrf_coordinator'],
config['networks'][network.show_active()]['link_token'],
config['networks'][network.show_active()]['keyhash'],
{"from": dev},
publish_source=publish_source
)
fund_advanced_collectible(advancedCollectible)
return advancedCollectible
与命令
brownie run scripts/advanced_collectible/deploy_advanced.py
我试过pip freeze,我有布朗尼和eh-布朗尼Python版本>= 3.7
我遇到了完全相同的错误,因为我在solididity文件AdvancedCollectible中拼错了AdvancedCollectible。在合同申报时,