Pārlūkot izejas kodu

merged iznik and fixed conflicts

Mokhtar Naamani 4 gadi atpakaļ
vecāks
revīzija
d8059939c1
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      cli/src/promptOptions/addWorkerOpening.ts

+ 3 - 3
cli/src/promptOptions/addWorkerOpening.ts

@@ -3,13 +3,13 @@ import { OpeningType, WorkingGroupOpeningPolicyCommitment } from '@joystream/typ
 import { SlashingTerms } from '@joystream/types/common'
 import { Bytes } from '@polkadot/types'
 import { schemaValidator } from '@joystream/types/hiring'
-import { createMock } from '@joystream/types'
+import { createType } from '@joystream/types'
 
 class OpeningPolicyCommitmentOptions implements ApiParamsOptions {
   [paramName: string]: ApiParamOptions
   public role_slashing_terms: ApiParamOptions<SlashingTerms> = {
     value: {
-      default: createMock('SlashingTerms', { Unslashable: null }),
+      default: createType('SlashingTerms', { Unslashable: null }),
       locked: true,
     },
   }
@@ -37,7 +37,7 @@ class AddWrokerOpeningOptions implements ApiParamsOptions {
   // Lock value for opening_type
   public opening_type: ApiParamOptions<OpeningType> = {
     value: {
-      default: createMock('OpeningType', { Worker: null }),
+      default: createType('OpeningType', { Worker: null }),
       locked: true,
     },
   }