Skip to content

Commit 99aafd8

Browse files
committed
Add comment
1 parent 5f0d2f7 commit 99aafd8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/protocol/src/protocol/Protocol.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ import { ProvableTransactionHook } from "./ProvableTransactionHook";
2727
import { ProtocolEnvironment } from "./ProtocolEnvironment";
2828
import { ProvableBlockHook } from "./ProvableBlockHook";
2929

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+
*/
3036
const PROTOCOL_INJECTION_TOKENS: Record<string, string> = {
3137
[ProvableTransactionHook.name]: "ProvableTransactionHook",
3238
[ProvableBlockHook.name]: "ProvableBlockHook",

0 commit comments

Comments
 (0)