from brownie import FundMe
from scripts.helpful_scripts import get_account


def fund():
    fund_me = FundMe[-1]
    account = get_account()
    entrance_fee = fund_me.getEntranceFee()
    print(f"entrance is {entrance_fee}")
    print("funding..")
    fund_me.fund({"from": account, "value": entrance_fee})


def withdraw():
    fund_me = FundMe[-1]
    account = get_account()
    fund_me.withdraw({"from": account})


def main():
    fund()
    withdraw()


if __name__ == "__main__":
    main()

[((7, 14, 7, 27), 'scripts.helpful_scripts.get_account', 'get_account', ({}, {}), '()', False, 'from scripts.helpful_scripts import get_account\n'), ((16, 14, 16, 27), 'scripts.helpful_scripts.get_account', 'get_account', ({}, {}), '()', False, 'from scripts.helpful_scripts import get_account\n')]