Example #1
0
def main():
    print(os.getenv("cat"))
    dev = accounts.add(os.getenv(config['wallets']['from_key']))
    print(network.show_active())
    simple_collectible = SimpleCollectible.deploy({'from': dev})
    simple_collectible.createCollectible("None")
    print(simple_collectible.ownerOf(0))
Example #2
0
def test_can_create_simple_collectible():
    if network.show_active() not in ["development"] or "fork" in network.show_active():
        pytest.skip("Only for local testing")
    simple_collectible = SimpleCollectible.deploy(
        {"from": get_account(), "gas_price": chain.base_fee}
    )
    simple_collectible.createCollectible(
        "None", {"from": get_account(), "gas_price": chain.base_fee}
    )
    assert simple_collectible.ownerOf(0) == get_account()
Example #3
0
def main():
    dev = accounts.add(config["wallets"]["from_key"])
    print(network.show_active())
    publish_source = True if os.getenv("ETHERSCAN_TOKEN") else False
    SimpleCollectible.deploy({"from": dev}, publish_source=publish_source)
Example #4
0
def main():
    dev = accounts.add(os.getenv(config['wallets']['from_key']))
    print(network.show_active())
    simple_collectible = SimpleCollectible[len(SimpleCollectible) - 1]
    print(simple_collectible.ownerOf(0))
    return SimpleCollectible.deploy({'from': dev})
def test_can_create_simple_collectible(get_account):
    simple_collectible = SimpleCollectible.deploy({"from": get_account})
    simple_collectible.createCollectible("None")
    assert simple_collectible.ownerOf(0) == get_account
Example #6
0
def main():
    dev = accounts.add(config["wallets"]["from_key"])
    print(network.show_active())
    SimpleCollectible.deploy({"from": dev},
                             publish_source=get_publish_source())