Skip to content

Commit 754cbf0

Browse files
committed
update readme reference
1 parent 766a0c3 commit 754cbf0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ This library is produced by building the original C code to WASM using the [`emp
66

77
## Usage
88

9-
This module exposes a single export, an async function called `initKzg` which loads and compiles the WASM object and returns an object that exposes the API defined in the `KZG` type interface in [`@ethereum/util`](https://github.com/ethereumjs/ethereumjs-monorepo/blob/e1221c98f3be0ba4224416f10d91ed4aa50130d8/packages/util/src/kzg.ts#L4)
9+
This module exposes a single export, an async function called `createKZG` which loads and compiles the WASM object and returns an object that exposes the API defined in the `KZG` type interface in [`@ethereum/util`](https://github.com/ethereumjs/ethereumjs-monorepo/blob/e1221c98f3be0ba4224416f10d91ed4aa50130d8/packages/util/src/kzg.ts#L4)
1010

1111
To use with the `@ethereumjs` libraries, do the following:
1212

1313
```ts
14-
import { initKzg } from 'kzg-wasm'
14+
import { createKZG } from 'kzg-wasm'
1515
import { Common, Chain, Hardfork } from '@ethereumjs/common'
1616
import { initKZG } from '@ethereumjs/util'
1717

1818
const main = async () => {
19-
const kzg = await initKzg()
19+
const kzg = await createKZG()
2020
initKZG(kzg, '')
2121
const common = new Common({
2222
chain: Chain.Mainnet,

0 commit comments

Comments
 (0)