From b6dfab932682cbc23020ba89647c6b1595c335d4 Mon Sep 17 00:00:00 2001 From: jianghuyiyuan Date: Wed, 31 Jul 2024 15:43:29 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: jianghuyiyuan --- README.md | 4 ++-- docs/index.md | 4 ++-- docs/setup/initialization.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f81fca80..c9b0cae9 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ Note that some library dependencies require `node.js` built-ins. When `iam-clien **Note:** You can see a full implementation of initializing `iam-client-lib` in the Switchboard application [here](https://github.com/energywebfoundation/switchboard-dapp/blob/develop/src/app/shared/services/iam.service.ts). -Your application will need to initialize the library's modules. Because the library's modules have internal depenencies, modules must be initialized by the application in the correct order: +Your application will need to initialize the library's modules. Because the library's modules have internal dependencies, modules must be initialized by the application in the correct order: #### 1. Initialize signer service @@ -109,7 +109,7 @@ const { signerService, messagingService, connectToCacheServer } = Depending on the signer type (i.e. MetaMask, WalletConnect), a signature may be requested. ```js -// IAM has builtin default settings for VOLTA CHAIN, which can overriden +// IAM has builtin default settings for VOLTA CHAIN, which can overridden // 1111 is an example of another ChainID (https://chainlist.org/) setChainConfig(1111, { didContractAddress: '0x3e2fb24edc3536d655720280b427c91bcb55f3d6', diff --git a/docs/index.md b/docs/index.md index 30adf631..d28d01f4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -93,7 +93,7 @@ Note that some library dependencies require `node.js` built-ins. When `iam-clien **Note:** You can see a full implementation of initializing `iam-client-lib` in the Switchboard application [here](https://github.com/energywebfoundation/switchboard-dapp/blob/develop/src/app/shared/services/iam.service.ts). -Your application will need to initialize the library's modules. Because the library's modules have internal depenencies, modules must be initialized by the application in the correct order: +Your application will need to initialize the library's modules. Because the library's modules have internal dependencies, modules must be initialized by the application in the correct order: #### 1. Initialize signer service @@ -109,7 +109,7 @@ const { signerService, messagingService, connectToCacheServer } = Depending on the signer type (i.e. MetaMask, WalletConnect), a signature may be requested. ```js -// IAM has builtin default settings for VOLTA CHAIN, which can overriden +// IAM has builtin default settings for VOLTA CHAIN, which can overridden // 1111 is an example of another ChainID (https://chainlist.org/) setChainConfig(1111, { didContractAddress: '0x3e2fb24edc3536d655720280b427c91bcb55f3d6', diff --git a/docs/setup/initialization.md b/docs/setup/initialization.md index 7f4897b9..a6d33256 100644 --- a/docs/setup/initialization.md +++ b/docs/setup/initialization.md @@ -18,7 +18,7 @@ const { 2. Connecting to cache server. Depending on signer type signature might be requested ```typescript -// IAM has builtin default settings for VOLTA CHAIN, which can overriden +// IAM has builtin default settings for VOLTA CHAIN, which can overridden setChainConfig(1111, { didContractAddress: '0x3e2fb24edc3536d655720280b427c91bcb55f3d6', ensRegistryAddress: '0xa372d665f83197a63bbe633ebe19c7bfd4943003',