code: func (s *lockBasedTxSimulator) GetTxSimulationResults() (*ledger.TxSimulationResults, error) {
  	if s.simulationResultsComputed {
  		return nil, errors.New("this function should only be called once on a transaction simulator instance")
  	}
  	defer func() { s.simulationResultsComputed = true }()
  	logger.Debugf("Simulation completed, getting simulation results")
  	if s.helper.err != nil {
  		return nil, s.helper.err
  	}
  	s.helper.addRangeQueryInfo()
  	return s.rwsetBuilder.GetTxSimulationResults()
  }
docs: // GetTxSimulationResults implements method in interface `ledger.TxSimulator`