Skip to content

Commit e2b9da1

Browse files
committed
Get modularization tests passing.
1 parent 607303c commit e2b9da1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/sdk/test/modularization.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import "reflect-metadata";
22
import { MethodIdResolver, Runtime, RuntimeModule } from "@proto-kit/module";
33
import { ChildContainerProvider } from "@proto-kit/common";
44
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";
69
import { Sequencer, SequencerModule } from "@proto-kit/sequencer";
710
import { PrivateKey } from "o1js";
811

@@ -13,7 +16,6 @@ class TestRuntimeModule extends RuntimeModule<object> {
1316

1417
public create(childContainerProvider: ChildContainerProvider) {
1518
super.create(childContainerProvider);
16-
1719
// Just to test if it doesn't throw
1820
childContainerProvider();
1921

@@ -47,9 +49,9 @@ describe("modularization", () => {
4749
it("should initialize all modules correctly", async () => {
4850
const appChain = AppChain.from({
4951
Runtime: Runtime.from({
50-
modules: {
52+
modules: VanillaRuntimeModules.with({
5153
TestRuntimeModule,
52-
},
54+
}),
5355
}),
5456
Protocol: Protocol.from({
5557
modules: VanillaProtocolModules.with({
@@ -66,6 +68,7 @@ describe("modularization", () => {
6668

6769
appChain.configurePartial({
6870
Runtime: {
71+
Balances: {},
6972
TestRuntimeModule: {},
7073
},
7174
Protocol: {

0 commit comments

Comments
 (0)