Skip to content

Commit a7c3138

Browse files
committed
Fix export typing
1 parent 502d77c commit a7c3138

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src.rs/src/verkle_ffi_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl Context {
219219
{
220220
let input_bytes = serde_wasm_bindgen::from_value(input.into()).unwrap();
221221
let result = ffi_interface::verify_proof(&self.inner, input_bytes).map(|_op |Boolean::from(true))
222-
.map_err(|err| JsError::new(&format!("proof verification failed]: {:?}", err)));
222+
.map_err(|err| JsError::new(&format!("proof verification failed: {:?}", err)));
223223
return result
224224
}
225225
}

src.ts/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
verifyExecutionWitnessPreState as verifyExecutionWitnessPreStateBase,
88
createProof as createProofBase,
99
verifyProof as verifyProofBase,
10-
ProverInput as ProverInputBase,
11-
VerifierInput as VerifierInputBase,
10+
type ProverInput as ProverInputBase,
11+
type VerifierInput as VerifierInputBase,
1212
} from './verkleFFIBindings/index.js'
1313
import { Context as VerkleFFI } from './wasm/rust_verkle_wasm.js'
1414

src.ts/tests/ffi.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { bytesToHex, randomBytes } from '@ethereumjs/util'
22
import { beforeAll, describe, expect, test, assert } from 'vitest'
33

4-
import { ProverInput, VerifierInput, VerkleCrypto, loadVerkleCrypto } from '../index.js'
4+
import { ProverInput, VerifierInput, loadVerkleCrypto } from '../index.js'
55
import { verifyExecutionWitnessPreState, Context as VerkleFFI } from '../wasm/rust_verkle_wasm.js'
66

77
import kaustinenBlock72 from './data/kaustinen6Block72.json'
88
import kaustinenBlock73 from './data/kaustinen6Block73.json'
99

1010
describe('bindings', () => {
1111
let ffi: VerkleFFI
12-
let verkleCrypto: VerkleCrypto
12+
let verkleCrypto: Awaited<ReturnType<typeof loadVerkleCrypto>>
1313
beforeAll(async () => {
1414
verkleCrypto = await loadVerkleCrypto()
1515
ffi = new VerkleFFI()

src.ts/verkleFFIBindings/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
updateCommitment,
1111
createProof,
1212
verifyProof,
13-
ProverInput,
14-
VerifierInput,
13+
type ProverInput,
14+
type VerifierInput,
1515
} from './verkleFFI.js'
1616

1717
export {
@@ -23,6 +23,6 @@ export {
2323
verifyExecutionWitnessPreState,
2424
createProof,
2525
verifyProof,
26-
ProverInput,
27-
VerifierInput,
26+
type ProverInput,
27+
type VerifierInput,
2828
}

0 commit comments

Comments
 (0)