adv_deploy() + Testing
from brownie import AdvancedCollectible
from scripts.helpful_scripts import get_account, OpenSeaURL, get_contract, fund_with_link
from brownie import config, network
# OpenSea Testnet is on rinkeby
def deploy():
account = get_account()
advanced_collectible = AdvancedCollectible.deploy(
get_contract("vrf_coordinator").address,
get_contract("link_token").address,
config["networks"][network.show_active()]["fee"],
config["networks"][network.show_active()]["keyhash"], {"from": account}, publish_source = config["networks"][network.show_active()].get("verify", False) )
# fund w/ link
fund_with_link(advanced_collectible.address)
# create
create_tx = advanced_collectible.createCollectible({"from": account})
create_tx.wait(1)
print("New NFT has been created")
return advanced_collectible, create_tx
def main():
deploy()Unit Testing
Integration Testing
Interacting with rinkeby deployment
Last updated