Resolve one or more tempids. 
    Automatically takes place after transaction is executed.

def resolve(self):
    """ Resolve one or more tempids. 
    Automatically takes place after transaction is executed.
    """
    assert isinstance(self.resp, dict), "Transaction in uncommitted or failed state"
    rids = [(v) for k,v in self.resp['tempids'].items()]
    self.txid = self.resp['tx-data'][0]['tx']
    rids.reverse()
    for t in self.tmpents:
      pos = self.tmpents.index(t)
      t._eid, t._txid = rids[pos], self.txid
    for t in self.realents:
      t._txid = self.txid