code: function transformTxObject(txObject, accounts) {
    // if no tx object, bypass
    if (typeof txObject !== 'object') { return txObject; }
  
    const from = typeof txObject.from === 'number' ? accounts[txObject.from] : txObject.from;
  
    return Object.assign({}, cloneDeep(txObject), { from });
  }
docs: Transform default tx object with accounts (mainly account 0 => accounts[0])
  
  @method transformTxObject
  @param {Object} txObject the input default tx object
  @param {Array} accounts the accounts from Ethereum RPC
  @return {Object} output the transformed tx object