File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/protocol/src/protocol Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ import { ProvableTransactionHook } from "./ProvableTransactionHook";
27
27
import { ProtocolEnvironment } from "./ProtocolEnvironment" ;
28
28
import { ProvableBlockHook } from "./ProvableBlockHook" ;
29
29
30
+ /**
31
+ * This is a mapping of abstract classes to their respective injection tokens.
32
+ * Keys are the abstract classes names, which need to be set dynamically
33
+ * and can't be hardcoded since producing optimized builds may mangle the
34
+ * class names, making them different from the ones in the source code.
35
+ */
30
36
const PROTOCOL_INJECTION_TOKENS : Record < string , string > = {
31
37
[ ProvableTransactionHook . name ] : "ProvableTransactionHook" ,
32
38
[ ProvableBlockHook . name ] : "ProvableBlockHook" ,
You can’t perform that action at this time.
0 commit comments