def review(ctx, _acct, _txhash): w3 = ctx['web3instance'] #p.ppln("[*] checking deployment statue... ") try: tx_receipt = w3.eth.waitForTransactionReceipt(_txhash, timeout=720) except Exception as err: p.p(str(err)) exit(0) addr = tx_receipt['contractAddress'] if not addr: p.pln(p.in_fg_color("[!] contract montagy deploy Broken down", r.red5)) exit(0) else: p.ppln("[+] contract Montagy deploy " + p.in_fg_color("success", r.green1) + ", address: " + p.in_fg_color(addr, r.blue1)) return addr
def review(ctx, _acct, _txhash): w3 = ctx['web3instance'] p.ppln("[-] Check for feitoken contract successful deployment... ") if 'feitoken' not in ctx['deployedcontracts'][_acct.address].keys(): try: tx_receipt = w3.eth.waitForTransactionReceipt(_txhash, timeout=720) except Exception as err: p.p(str(err)) exit(0) addr = tx_receipt['contractAddress'] update_user_deploy_contracts(ctx, _acct.address, 'feitoken', addr) else: addr = ctx['deployedcontracts'][_acct.address]['feitoken'] if not addr: p.pln(p.in_fg_color("[!] contract feitoken deploy Broken down", r.red5)) else: p.ppln("[+] contract feitoken deploy " + p.in_fg_color("success", r.green1)) p.ppln("[!] feitoken contract address is " + p.in_fg_color(addr, r.blue1))