Skip to content

Commit

Permalink
docs: fixed typo in config-manager doc (#620)
Browse files Browse the repository at this point in the history
Co-authored-by: homura <[email protected]>
  • Loading branch information
SpectreMercury and homura authored Jan 22, 2024
1 parent 00d74cd commit 66228d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/config-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
## Example

```ts
import { initializeConfig, predefined } from '@ckb-lumos/config';
import { initializeConfig, predefined } from "@ckb-lumos/config-manager"
// or import from the entry package
import { initializeConfig, predefined } from "@ckb-lumos/lumos/config"
import { encodeToAddress } from '@ckb-lumos/helper'

initializeConfig(predefined.AGGRON);
Expand All @@ -17,7 +19,9 @@ encodeToAddress({...}) // ckb1...
## Refreshing Config

```ts
import { refreshScriptConfig } from "@ckb-lumos/config";
import { refreshScriptConfigs } from "@ckb-lumos/config-manager"
// or import from the entry package
import { refreshScriptConfigs } from "@ckb-lumos/lumos/config"
import { RPC } from "@ckb-lumos/rpc";

const rpc = new RPC("http://localhost:8114");
Expand Down

2 comments on commit 66228d6

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 New canary release: 0.0.0-canary-66228d6-20240122031015

npm install @ckb-lumos/[email protected]

@vercel
Copy link

@vercel vercel bot commented on 66228d6 Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.