Skip to content

Commit 4558930

Browse files
authored
chore: fix some comments to improve readability (#12381)
Signed-off-by: cuoguojida <cuoguojida@outlook.com>
1 parent 21f5948 commit 4558930

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/base/tests/identifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('ProfileIdentifier', () => {
5454
expect(a.toText()).toMatchInlineSnapshot('"person:twitter.com/test_twitter_1"')
5555
})
5656
// Note: ProfileIdentifier MUST NOT be case insensitive. It's toText() result will be used as password of stego.
57-
// change it to canse insensitive is a breaking change.
57+
// change it to case insensitive is a breaking change.
5858
test('should NOT be case insensitive', () => {
5959
const a2 = ProfileIdentifier.from('person:twitter.com/Test_twitter_1').unwrap()
6060
expect(a).not.toBe(a2)

packages/web3-providers/src/Web3/Base/apis/Connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export interface BaseConnection<
178178
/** Send a transaction and wait for mining */
179179
sendTransaction(transaction: Transaction, initial?: Options): Promise<string>
180180

181-
/** Estimate a transaction */
181+
/** Estimate a transaction */
182182
estimateTransaction?: (transaction: Transaction, fallback?: number, initial?: Options) => Promise<string>
183183

184184
/** Send a signed transaction */

packages/web3-providers/src/Web3/Base/apis/ConnectionOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface BaseConnectionOptions<ChainId, ProviderType, Transaction> {
1919
paymentToken?: string
2020
/** Only Support Mask Wallet, silent switch wallet */
2121
silent?: boolean
22-
/** Accessing data from chain directly w/o middleware, the default value is true */
22+
/** Accessing data from chain directly w/o middleware, the default value is true */
2323
readonly?: boolean
2424
/** Fragments to merge into the transaction. */
2525
overrides?: Partial<Transaction>

packages/web3-providers/src/types/Wallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export namespace WalletAPI {
6363
source?: string,
6464
): Promise<Array<{ address: string; owner?: string; identifier?: ECKeyIdentifier }>>
6565

66-
/** Disconnect origin from Mask wallet */
66+
/** Disconnect origin from Mask wallet */
6767
disconnectAllWalletsFromOrigin(origin: string, type: 'any' | 'sdk' | 'internal'): Promise<void>
6868
}
6969
export type SignWithPersona = (

0 commit comments

Comments
 (0)