Skip to content

Commit c7fd61a

Browse files
feat: run contracts added with addMission through fixContract
1 parent 7f92462 commit c7fd61a

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

components/controller.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -822,13 +822,16 @@ export class Controller {
822822
return
823823
}
824824

825-
this.hooks.getContractManifest.tap(manifest.Metadata.Id, (id) => {
826-
if (id === manifest.Metadata.Id) {
827-
return manifest
828-
}
825+
this.hooks.getContractManifest.tap(
826+
manifest.Metadata.Id,
827+
(id, gameVersion) => {
828+
if (id === manifest.Metadata.Id) {
829+
return this.fixContract(manifest, gameVersion)
830+
}
829831

830-
return undefined
831-
})
832+
return undefined
833+
},
834+
)
832835
}
833836

834837
/**

0 commit comments

Comments
 (0)