Skip to content

Commit

Permalink
No fast
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Jan 10, 2024
1 parent 3829598 commit 9a24d8b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions scripts/sismondi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,11 @@
else:
account = accounts.add(config["wallets"]["from_key"])

dev_net = False

def log(txt):
print(txt)
logging.info(txt)

def fast_transaction():
if not dev_net:
priority = 5_000_000_000
network.priority_fee(priority)
network.max_fee(chain.base_fee + priority)

def deploy():
fast_transaction()
sismondi_contract = SismondiNFT.deploy(
{"from": account},
publish_source=config["networks"][network.show_active()].get("verify")
Expand All @@ -30,16 +21,13 @@ def deploy():
return sismondi_contract

def mint(addr):
fast_transaction()
sismondi_contract = SismondiNFT.at(addr)
nft = sismondi_contract.makeSismondiNFT({'from': account})
nft_id = nft.events['NewSismondiNFTMinted']['tokenId']
log(f"A new NFT with id {nft_id} has been successfully created in block {nft.block_number} with transaction {nft.txid}")
return nft

def deploy_mint():
global dev_net
dev_net = True
contract = deploy()
print("\n---\n")
nft = mint(contract.address)
Expand Down

0 comments on commit 9a24d8b

Please sign in to comment.