Skip to content

Commit 6316573

Browse files
committed
chore: minor improvement for docs
Signed-off-by: liuyueyangxmu <[email protected]>
1 parent 7a74948 commit 6316573

File tree

13 files changed

+14
-14
lines changed

13 files changed

+14
-14
lines changed

background/lib/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export const isMaxUint256 = (amount: BigNumber | bigint | string): boolean =>
175175
ethers.BigNumber.from(amount).eq(ethers.constants.MaxUint256)
176176

177177
/**
178-
* Converts a string of hexidecimals bytes to ascii text
178+
* Converts a string of hexadecimals bytes to ascii text
179179
*/
180180
export const hexToAscii = (hex_: string): string => {
181181
const hex = hex_.toString() // force conversion

background/redux-slices/migrations/to-7.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This migration adds timestamps for activites directly to the activity
1+
// This migration adds timestamps for activities directly to the activity
22
// objects, then deletes the `blocks` key from the networks slice to save on
33
// space.
44

background/services/analytics/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface Events extends ServiceLifecycleEvents {
2828

2929
/*
3030
* The analytics service is responsible for listening to events in the service layer,
31-
* handling sending and persistance concerns.
31+
* handling sending and persistence concerns.
3232
*/
3333
export default class AnalyticsService extends BaseService<Events> {
3434
#analyticsUUID: string | undefined = undefined

background/services/chain/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function blockFromEthersBlock(
3939
blockHeight: gethResult.number,
4040
parentHash: gethResult.parentHash,
4141
// FIXME Hold for ethers/v5.4.8 _difficulty BigNumber field; the current
42-
// FIXME difficutly field is a `number` and has overflowed since Ethereum
42+
// FIXME difficulty field is a `number` and has overflowed since Ethereum
4343
// FIXME difficulty has exceeded MAX_SAFE_INTEGER. The current ethers
4444
// FIXME version devolves to `null` in that scenario, and does not reflect
4545
// FIXME in its type. The upcoming release will have a BigNumber

background/services/internal-ethereum-provider/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ type Events = ServiceLifecycleEvents & {
118118
selectedNetwork: EVMNetwork
119119
watchAssetRequest: { contractAddress: string; network: EVMNetwork }
120120
// connect
121-
// disconnet
121+
// disconnect
122122
// account change
123123
// networkchange
124124
}

background/services/internal-signer/encryption.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function requireCryptoGlobal(message?: string) {
6565
* Note that the symmetric key, alone, or the salt *and* the password,
6666
* together, must be retained to decrypt anything encrypted by the
6767
* returned key. While the salt isn't secret key material, losing it
68-
* could jeopardize access to user data (and therefor, funds).
68+
* could jeopardize access to user data (and therefore, funds).
6969
* @returns a salted symmetric key suitable for encrypting and decrypting
7070
* material using AES GCM mode, as well as the salt required to derive
7171
* the key again later.

background/services/internal-signer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ export default class InternalSignerService extends BaseService<Events> {
715715
}
716716

717717
/**
718-
* Export private key - supprts exporting from both private key wallet signers and
718+
* Export private key - supports exporting from both private key wallet signers and
719719
* HD Wallet's specific accounts
720720
*
721721
* @param address

background/services/internal-signer/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function getEncryptedVaults(): Promise<SerializedEncryptedVaults> {
4444
) {
4545
return tallyVaults as SerializedEncryptedVaults
4646
}
47-
throw new Error("Encrypted vaults are using an unkown serialization format")
47+
throw new Error("Encrypted vaults are using an unknown serialization format")
4848
}
4949

5050
function equalVaults(vault1: EncryptedVault, vault2: EncryptedVault): boolean {

background/services/ledger/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default class LedgerService extends BaseService<Events> {
184184
navigator.usb.addEventListener("connect", this.#handleUSBConnect)
185185
navigator.usb.addEventListener("disconnect", this.#handleUSBDisconnect)
186186

187-
// Block serial oprations until the service is started, in case a
187+
// Block serial operations until the service is started, in case a
188188
// connection or disconnection event occurs to soon.
189189
this.#lastOperationPromise = this.started().then(() => {})
190190
}

background/services/redux/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export default class ReduxService extends BaseService<never> {
529529
if (signer.type !== AccountType.ReadOnly) {
530530
await this.abilitiesService.deleteAbilitiesForAccount(address)
531531
}
532-
// remove dApp premissions
532+
// remove dApp permissions
533533
this.store.dispatch(revokePermissionsForAddress(address))
534534
await this.providerBridgeService.revokePermissionsForAddress(address)
535535
// TODO Adjust to handle specific network.

0 commit comments

Comments
 (0)