newContract method

Contract newContract({
  1. String? code,
  2. List? init,
  3. int? version,
  4. bool? toDS,
})

Implementation

Contract newContract({String? code, List? init, int? version, bool? toDS}) {
  return new Contract(
      params: {'code': code, 'init': init, 'version': version},
      messenger: this.messenger,
      wallet: this.wallet,
      status: ContractStatus.INITIALISED,
      toDS: toDS);
}