Das Skript das aufgerufen und ausgeführt werden soll:
Code: Alles auswählen
#!/usr/bin/python3
from brownie import SimpleCollectible, accounts, network, config
def main():
dev = accounts.add(config["wallets"]["from_key"])
print(network.show_active())
simple_collectible = SimpleCollectible[len(SimpleCollectible) - 1]
token_id = simple_collectible.tokenCounter()
print("The token_id of this token is: " + str(token_id))
transaction = simple_collectible.createCollectible("none", {"from": dev})
Code: Alles auswählen
#!/usr/bin/python3
# coding: utf-8
import runpy
def main():
runpy.run_path(path_name="scripts\create_collectible.py")
Im Terminal steht nur "Running 'scripts\deploy_allinone.py::main'..." ohne das Funktionen des Skripts create_collectible.py" ausgeführt werden.
Wo habe ich einen Fehler gemacht?