def _set_from_address(web3, transaction_options):
    """set the from address in the transaction options

    transact() will not fill the from field by asking the node
    we need to do that ourselves
    """
    if 'from' not in transaction_options:
        transaction_options['from'
            ] = web3.eth.defaultAccount or web3.eth.accounts[0]
