code: func PendingTransferToBundle(pt *PendingTransfer) (bundle.Bundle, error) {
  	bndl := make(bundle.Bundle, len(pt.Bundle))
  	in := 0
  	for i := 0; i < len(bndl); i++ {
  		essenceTrytes := pt.Bundle[i]
  		// add empty trits for fields after the last index
  		txTrytes := essenceTrytes + Pad("", (consts.TransactionTrinarySize-consts.BundleTrinaryOffset)/3)
  		// add an empty signature message fragment if non was stored
  		if len(txTrytes) != consts.TransactionTrinarySize/3 {
  			txTrytes = Pad("", consts.SignatureMessageFragmentTrinarySize/3) + txTrytes
  		}
  		tx, err := transaction.ParseTransaction(MustTrytesToTrits(txTrytes), true)
  		if err != nil {
  			return nil, err
  		}
  		bndl[in] = *tx
  		in++
  	}
  	b, err := bundle.Finalize(bndl)
  	if err != nil {
  		panic(err)
  	}
  	return b, nil
  }
docs: // PendingTransferToBundle converts bundle essences to a (incomplete) bundle.