Skip to content

Commit c6ad430

Browse files
committed
Fixing more test errors
1 parent b6b8c54 commit c6ad430

11 files changed

+13
-10
lines changed

sdk/rollup.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export default networks.map((network) => {
3939

4040
// Used by the SDK
4141
"comlink",
42+
`@provablehq/sdk/${network}.js`,
4243
`@provablehq/wasm/${network}.js`,
4344
"core-js/proposals/json-parse-with-source.js",
4445

sdk/tests/account.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sinon from "sinon";
22
import { expect } from "chai";
3-
import { Account, Address, PrivateKey, RecordCiphertext, ViewKey } from "@provablehq/sdk";
3+
import { Account, Address, PrivateKey, RecordCiphertext, ViewKey } from "@provablehq/sdk/%%NETWORK%%.js";
44
import { seed, message, beaconPrivateKeyString, beaconViewKeyString, beaconAddressString, recordCiphertextString, foreignCiphertextString, recordPlaintextString } from "./data/account-data";
55

66
describe('Account', () => {

sdk/tests/arithmetic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sinon from "sinon";
22
import { expect } from "chai";
3-
import { Field, Scalar, Group} from "@provablehq/sdk";
3+
import { Field, Scalar, Group} from "@provablehq/sdk/%%NETWORK%%.js";
44

55
describe('Field and Group Arithmetic Tests', () => {
66
afterEach(() => {

sdk/tests/key-provider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from "chai";
2-
import {AleoKeyProvider, CachedKeyPair, CREDITS_PROGRAM_KEYS, FunctionKeyPair, OfflineKeyProvider, ProvingKey, VerifyingKey} from "@provablehq/sdk";
2+
import {AleoKeyProvider, CachedKeyPair, CREDITS_PROGRAM_KEYS, FunctionKeyPair, OfflineKeyProvider, ProvingKey, VerifyingKey} from "@provablehq/sdk/%%NETWORK%%.js";
33

44
describe('KeyProvider', () => {
55
let keyProvider: AleoKeyProvider;

sdk/tests/network-client.integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from "chai";
22
import {beaconAddressString, beaconPrivateKeyString} from "./data/account-data";
3-
import {Account, AleoNetworkClient} from "@provablehq/sdk";
3+
import {Account, AleoNetworkClient} from "@provablehq/sdk/%%NETWORK%%.js";
44

55
describe('NodeConnection', () => {
66
let localApiClient: AleoNetworkClient;

sdk/tests/network-client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
PlaintextObject,
1717
Transition,
1818
TransitionObject,
19-
} from "@provablehq/sdk";
19+
} from "@provablehq/sdk/%%NETWORK%%.js";
2020
import { beaconPrivateKeyString } from "./data/account-data";
2121

2222
async function catchError(f: () => Promise<any>): Promise<Error | null> {

sdk/tests/program-manager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
statePathRecordOwnerPrivateKey,
88
stateRoot
99
} from "./data/account-data";
10-
import { Account, ExecutionResponse, OfflineQuery, ProgramManager, RecordPlaintext } from "@provablehq/sdk";
10+
import { Account, ExecutionResponse, OfflineQuery, ProgramManager, RecordPlaintext } from "@provablehq/sdk/%%NETWORK%%.js";
1111

1212
describe('Program Manager', () => {
1313
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", undefined, undefined);

sdk/tests/record-provider.integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from "chai";
22
import { beaconPrivateKeyString } from "./data/account-data";
3-
import { Account, AleoNetworkClient, NetworkRecordProvider, RecordPlaintext } from "@provablehq/sdk";
3+
import { Account, AleoNetworkClient, NetworkRecordProvider, RecordPlaintext } from "@provablehq/sdk/%%NETWORK%%.js";
44

55
describe('RecordProvider', () => {
66
let account: Account;

sdk/tests/record-provider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from "chai";
2-
import {Account, AleoNetworkClient, BlockHeightSearch, NetworkRecordProvider} from "@provablehq/sdk";
2+
import {Account, AleoNetworkClient, BlockHeightSearch, NetworkRecordProvider} from "@provablehq/sdk/%%NETWORK%%.js";
33
import {beaconPrivateKeyString} from "./data/account-data";
44

55
describe.skip('RecordProvider', () => {

sdk/tests/wasm.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from "chai";
2-
import { Address, PrivateKey, ViewKey, Signature, RecordCiphertext, RecordPlaintext, PrivateKeyCiphertext } from "@provablehq/sdk";
2+
import { Address, PrivateKey, ViewKey, Signature, RecordCiphertext, RecordPlaintext, PrivateKeyCiphertext } from "@provablehq/sdk/%%NETWORK%%.js";
33
import {
44
seed,
55
message,

0 commit comments

Comments
 (0)