Skip to content

Commit c09d939

Browse files
committed
Test compile errors
1 parent 5abcef1 commit c09d939

File tree

4 files changed

+25
-10
lines changed

4 files changed

+25
-10
lines changed

packages/module/test/modules/Balances.test.ts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
RuntimeMethodExecutionContext,
1010
RuntimeTransaction,
1111
NetworkState,
12+
PROTOKIT_PREFIXES,
1213
} from "@proto-kit/protocol";
1314

1415
import { Runtime } from "../../src";
@@ -132,7 +133,11 @@ describe("balances", () => {
132133
it("should have a state transition for the correct path", () => {
133134
expect.assertions(1);
134135

135-
const path = Path.fromProperty("Balances", "totalSupply");
136+
const path = Path.fromProperty(
137+
"Balances",
138+
"totalSupply",
139+
PROTOKIT_PREFIXES.STATE_RUNTIME
140+
);
136141

137142
expect(stateTransitions[0].path.toString()).toStrictEqual(
138143
path.toString()
@@ -192,7 +197,11 @@ describe("balances", () => {
192197
it("should have a state transition for the correct path", () => {
193198
expect.assertions(1);
194199

195-
const path = Path.fromProperty("Balances", "totalSupply");
200+
const path = Path.fromProperty(
201+
"Balances",
202+
"totalSupply",
203+
PROTOKIT_PREFIXES.STATE_RUNTIME
204+
);
196205

197206
expect(stateTransitions[0].path.toString()).toStrictEqual(
198207
path.toString()
@@ -247,7 +256,11 @@ describe("balances", () => {
247256
it("should have a state transition for the correct path", () => {
248257
expect.assertions(1);
249258

250-
const path = Path.fromProperty("Balances", "totalSupply");
259+
const path = Path.fromProperty(
260+
"Balances",
261+
"totalSupply",
262+
PROTOKIT_PREFIXES.STATE_RUNTIME
263+
);
251264

252265
expect(stateTransitions[0].path.toString()).toStrictEqual(
253266
path.toString()
@@ -313,7 +326,11 @@ describe("balances", () => {
313326
expect.assertions(1);
314327

315328
const path = Path.fromKey<PublicKey>(
316-
Path.fromProperty("Balances", "balances"),
329+
Path.fromProperty(
330+
"Balances",
331+
"balances",
332+
PROTOKIT_PREFIXES.STATE_RUNTIME
333+
),
317334
PublicKey,
318335
address
319336
);

packages/module/test/modules/Balances.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { PublicKey, UInt64 } from "o1js";
2-
import { State, StateMap } from "@proto-kit/protocol";
2+
import { State, StateMap, state } from "@proto-kit/protocol";
33
import { Presets } from "@proto-kit/common";
44

5-
import { RuntimeModule, runtimeMethod, runtimeModule, state } from "../../src";
5+
import { RuntimeModule, runtimeMethod, runtimeModule } from "../../src";
66

77
import { Admin } from "./Admin.js";
88

packages/sequencer/test/integration/mocks/ProvenBalance.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ import {
33
runtimeMethod,
44
runtimeModule,
55
RuntimeModule,
6-
state,
76
} from "@proto-kit/module";
87
import { log, Presets } from "@proto-kit/common";
98
import { PublicKey, UInt64 } from "o1js";
109
import { Admin } from "@proto-kit/module/test/modules/Admin";
11-
import { Deposit, State, StateMap } from "@proto-kit/protocol";
10+
import { Deposit, State, StateMap, state } from "@proto-kit/protocol";
1211

1312
@runtimeModule()
1413
export class ProvenBalance extends RuntimeModule<object> {

packages/sequencer/test/settlement/mocks/Withdrawals.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import {
33
runtimeMethod,
44
runtimeModule,
55
RuntimeModule,
6-
state,
76
} from "@proto-kit/module";
8-
import { StateMap, Withdrawal } from "@proto-kit/protocol";
7+
import { StateMap, Withdrawal, state } from "@proto-kit/protocol";
98
import { Field, PublicKey, Struct, UInt64 } from "o1js";
109
import { inject } from "tsyringe";
1110

0 commit comments

Comments
 (0)