Skip to content

Commit 327a4d4

Browse files
committed
fixed test
1 parent 37749a6 commit 327a4d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/tests/wasm.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from "chai";
2-
import { Address, AleoNetworkClient, CREDITS_PROGRAM_KEYS, Field, FunctionKeyPair, PrivateKey, ViewKey, Signature, RecordCiphertext, RecordPlaintext, PrivateKeyCiphertext, EncryptionToolkit, Transition, VerifyingKey} from "../src/node.js";
2+
import { Address, AleoNetworkClient, CREDITS_PROGRAM_KEYS, Field, FunctionKeyPair, PrivateKey, ViewKey, Signature, RecordCiphertext, RecordPlaintext, PrivateKeyCiphertext, EncryptionToolkit, Transition, VerifyingKey, AleoKeyProvider} from "../src/node.js";
33
import {
44
seed,
55
message,
@@ -22,7 +22,6 @@ import {
2222
} from "./data/records.js";
2323
import { TRANSFER_PUBLIC_VERIFYING_KEY } from "./data/verifying-key.js";
2424

25-
2625
describe('WASM Objects', () => {
2726
describe('Address', () => {
2827
it('can be constructed from a private key', () => {
@@ -487,8 +486,9 @@ describe('WASM Objects', () => {
487486
});
488487
});
489488
describe('VerifyingKey', () => {
490-
it('can get the number of constraints', () => {
491-
const transferPublicVerifier = VerifyingKey.fromString(TRANSFER_PUBLIC_VERIFYING_KEY);
489+
it('can get the number of constraints', async () => {
490+
const keyProvider = new AleoKeyProvider();
491+
const [transferPublicProver, transferPublicVerifier] = <FunctionKeyPair>await keyProvider.fetchCreditsKeys(CREDITS_PROGRAM_KEYS.transfer_public);
492492
const numConstraints = transferPublicVerifier.numConstraints();
493493
expect(numConstraints).to.equal(12326);
494494
});

0 commit comments

Comments
 (0)