@@ -2,7 +2,10 @@ import "reflect-metadata";
2
2
import { MethodIdResolver , Runtime , RuntimeModule } from "@proto-kit/module" ;
3
3
import { ChildContainerProvider } from "@proto-kit/common" ;
4
4
import { Protocol , ProtocolModule } from "@proto-kit/protocol" ;
5
- import { VanillaProtocolModules } from "@proto-kit/library" ;
5
+ import {
6
+ VanillaProtocolModules ,
7
+ VanillaRuntimeModules ,
8
+ } from "@proto-kit/library" ;
6
9
import { Sequencer , SequencerModule } from "@proto-kit/sequencer" ;
7
10
import { PrivateKey } from "o1js" ;
8
11
@@ -13,7 +16,6 @@ class TestRuntimeModule extends RuntimeModule<object> {
13
16
14
17
public create ( childContainerProvider : ChildContainerProvider ) {
15
18
super . create ( childContainerProvider ) ;
16
-
17
19
// Just to test if it doesn't throw
18
20
childContainerProvider ( ) ;
19
21
@@ -47,9 +49,9 @@ describe("modularization", () => {
47
49
it ( "should initialize all modules correctly" , async ( ) => {
48
50
const appChain = AppChain . from ( {
49
51
Runtime : Runtime . from ( {
50
- modules : {
52
+ modules : VanillaRuntimeModules . with ( {
51
53
TestRuntimeModule,
52
- } ,
54
+ } ) ,
53
55
} ) ,
54
56
Protocol : Protocol . from ( {
55
57
modules : VanillaProtocolModules . with ( {
@@ -66,6 +68,7 @@ describe("modularization", () => {
66
68
67
69
appChain . configurePartial ( {
68
70
Runtime : {
71
+ Balances : { } ,
69
72
TestRuntimeModule : { } ,
70
73
} ,
71
74
Protocol : {
0 commit comments