File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/protocol/src/protocol Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ import { ProtocolEnvironment } from "./ProtocolEnvironment";
28
28
import { ProvableBlockHook } from "./ProvableBlockHook" ;
29
29
30
30
const PROTOCOL_INJECTION_TOKENS : Record < string , string > = {
31
- ProvableTransactionHook : "ProvableTransactionHook" ,
32
- ProvableBlockHook : "ProvableBlockHook" ,
33
- ProvableSettlementHook : "ProvableSettlementHook" ,
31
+ [ ProvableTransactionHook . name ] : "ProvableTransactionHook" ,
32
+ [ ProvableBlockHook . name ] : "ProvableBlockHook" ,
33
+ [ ProvableSettlementHook . name ] : "ProvableSettlementHook" ,
34
34
} ;
35
35
36
36
export type ProtocolModulesRecord = ModulesRecord <
@@ -161,7 +161,7 @@ export class Protocol<
161
161
162
162
implementingModules . forEach ( ( [ key ] ) => {
163
163
this . container . register (
164
- abstractType . name ,
164
+ newInjectionToken ,
165
165
{ useToken : key } ,
166
166
{ lifecycle : Lifecycle . ContainerScoped }
167
167
) ;
@@ -174,7 +174,7 @@ export class Protocol<
174
174
175
175
// Register default (noop) version
176
176
this . container . register (
177
- abstractType . name ,
177
+ newInjectionToken ,
178
178
{ useClass : defaultType } ,
179
179
{ lifecycle : Lifecycle . ContainerScoped }
180
180
) ;
You can’t perform that action at this time.
0 commit comments