From 8dbe9977cfe3eb4df94fe1075681c1e71e4f0214 Mon Sep 17 00:00:00 2001 From: Miles <2627273987@qq.com> Date: Thu, 29 Feb 2024 17:51:31 +0800 Subject: [PATCH 1/2] typo fixes --- .../src/components/common/Account/ImportWallets.tsx | 4 ++-- packages/app-extension/src/index.tsx | 2 +- packages/provider-injection/src/index.ts | 2 +- .../src/SolanaClient/BackpackSolanaConnection.ts | 2 +- .../LedgerRequests/_utils/executeLedgerFunction.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/app-extension/src/components/common/Account/ImportWallets.tsx b/packages/app-extension/src/components/common/Account/ImportWallets.tsx index 26c8a85c4..9361c3711 100644 --- a/packages/app-extension/src/components/common/Account/ImportWallets.tsx +++ b/packages/app-extension/src/components/common/Account/ImportWallets.tsx @@ -134,7 +134,7 @@ export function ImportWallets({ const result = result_.wallets[0].walletDescriptors.map( (descriptor) => ({ ...descriptor, - mnemonic, // bring back option for mnemonic === true to differentiat privatkey_derived & mnemnoic + mnemonic, // bring back option for mnemonic === true to differentiate privatkey_derived & mnemnoic }) ) as WalletDescriptor[]; setImportedPublicKeys( @@ -278,7 +278,7 @@ export function ImportWallets({ }, [fetchPublicKeys]); // - // Clear accounts and selected acounts on change of derivation path. + // Clear accounts and selected accounts on change of derivation path. // useEffect( () => { diff --git a/packages/app-extension/src/index.tsx b/packages/app-extension/src/index.tsx index d017748a6..7d29d942f 100644 --- a/packages/app-extension/src/index.tsx +++ b/packages/app-extension/src/index.tsx @@ -92,7 +92,7 @@ document.addEventListener("keydown", async function onKeyDown(event) { }); // Render the UI. -// TOOD(react) createRoot is required: https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-client-rendering-apis +// TODO(react) createRoot is required: https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-client-rendering-apis const container = document.getElementById("root"); const root = createRoot(container!); root.render( diff --git a/packages/provider-injection/src/index.ts b/packages/provider-injection/src/index.ts index 019abe037..af32872b8 100644 --- a/packages/provider-injection/src/index.ts +++ b/packages/provider-injection/src/index.ts @@ -9,7 +9,7 @@ import { ToMobileAppTransportSender, } from "@coral-xyz/secure-clients"; -// This is a bit of a hack, it's speicifically at the top of this file +// This is a bit of a hack, it's specifically at the top of this file // to ensure it's loaded before other code if (globalThis.ReactNativeWebView && !globalThis.isHiddenWebView) { Object.defineProperty(window, "___fromApp", { diff --git a/packages/secure-clients/src/SolanaClient/BackpackSolanaConnection.ts b/packages/secure-clients/src/SolanaClient/BackpackSolanaConnection.ts index 4e3db1189..409040a8c 100644 --- a/packages/secure-clients/src/SolanaClient/BackpackSolanaConnection.ts +++ b/packages/secure-clients/src/SolanaClient/BackpackSolanaConnection.ts @@ -85,7 +85,7 @@ export class BackpackSolanaConnection extends Connection { // // We sort the data so that we can have a consistent key when teh data // doesn't change. We remove the mints and metadata from the key because - // it's not neceessary at all when calculating whether something has + // it's not necessary at all when calculating whether something has // changed. // return JSON.stringify({ diff --git a/packages/secure-ui/src/RequestHandlers/LedgerRequests/_utils/executeLedgerFunction.ts b/packages/secure-ui/src/RequestHandlers/LedgerRequests/_utils/executeLedgerFunction.ts index 6b0baecf6..c6b29a2c3 100644 --- a/packages/secure-ui/src/RequestHandlers/LedgerRequests/_utils/executeLedgerFunction.ts +++ b/packages/secure-ui/src/RequestHandlers/LedgerRequests/_utils/executeLedgerFunction.ts @@ -61,7 +61,7 @@ export function executeLedgerFunction( const isError = isLedgerError(e?.message); if (isError("HID_PERMISSIONS_NOT_AVAILABLE")) { - // It's not uncommon to get one / two permissions error before succesfull connect. + // It's not uncommon to get one / two permissions error before successful connect. // so we just count the errors and act on them after the gesture timer ran out. HID_PERMISSIONS_NOT_AVAILABLE_count++; } From 4d513ecb1d0fc5df02187f6119f96770f2023dc6 Mon Sep 17 00:00:00 2001 From: Miles <2627273987@qq.com> Date: Thu, 29 Feb 2024 22:31:05 +0800 Subject: [PATCH 2/2] fix typo --- .../clients/simple/src/solana/SendLamportSignMessageButton.tsx | 2 +- .../src/components/Onboarding/pages/OnboardAccount.tsx | 2 +- .../src/refactor/navigation/SendCollectibleNavigator.tsx | 2 +- packages/common/src/browser/uiActionRequestManager.ts | 2 +- .../src/store/KeyringStore/migrations/migrate_0_2_0_510.ts | 2 +- .../src/transports/ToSecureUITransportSender.ts | 2 +- packages/secure-background/src/types/transports.ts | 2 +- packages/secure-clients/src/EthereumClient/ethereum/provider.ts | 2 +- .../src/SolanaClient/solanaLegacy/programs/token.ts | 2 +- packages/secure-clients/src/TensorClient/TensorClient.ts | 2 +- packages/secure-ui/src/_atoms/requestAtoms.ts | 2 +- packages/secure-ui/src/_atoms/solanaMutatedTransactionAtom.ts | 2 +- .../secure-ui/src/_atoms/solanaTxDowngradableAccountsAtom.ts | 2 +- packages/tamagui-core/src/components/ProxyImage.tsx | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/clients/simple/src/solana/SendLamportSignMessageButton.tsx b/examples/clients/simple/src/solana/SendLamportSignMessageButton.tsx index f1a0e9496..9dbfb1b7a 100644 --- a/examples/clients/simple/src/solana/SendLamportSignMessageButton.tsx +++ b/examples/clients/simple/src/solana/SendLamportSignMessageButton.tsx @@ -31,7 +31,7 @@ export const SendLamportSignMessageButton: FC = () => { const serializedTransactoin = transaction.serializeMessage(); // const [signature, { blockhash, lastValidBlockHeight }] = await Promise.all([ - // wallet.signMessage!(new Uint8Array(serializedTransactoin)), + // wallet.signMessage!(new Uint8Array(serializedTransaction)), // connection.getLatestBlockhash(), // ]); diff --git a/packages/app-extension/src/components/Onboarding/pages/OnboardAccount.tsx b/packages/app-extension/src/components/Onboarding/pages/OnboardAccount.tsx index d102d4415..225682644 100644 --- a/packages/app-extension/src/components/Onboarding/pages/OnboardAccount.tsx +++ b/packages/app-extension/src/components/Onboarding/pages/OnboardAccount.tsx @@ -140,7 +140,7 @@ export const OnboardAccount = ({ ] : []), ...(keyringType === "mnemonic" || keyringType === "ledger" - ? // if were importing mnemonic of ledger we need to select the blockchiain + ? // if were importing mnemonic of ledger we need to select the blockchain [ ( { cancelRoutine(); diff --git a/packages/secure-background/src/store/KeyringStore/migrations/migrate_0_2_0_510.ts b/packages/secure-background/src/store/KeyringStore/migrations/migrate_0_2_0_510.ts index c6967b8c7..13e5c3cca 100644 --- a/packages/secure-background/src/store/KeyringStore/migrations/migrate_0_2_0_510.ts +++ b/packages/secure-background/src/store/KeyringStore/migrations/migrate_0_2_0_510.ts @@ -29,7 +29,7 @@ export async function migrate_0_2_0_510( // Migration: // -// - moves the wallet data object to a user specfic location. +// - moves the wallet data object to a user specific location. // - clears out the old global wallet data object. async function migrateWalletData_0_2_0_510( userInfo: { diff --git a/packages/secure-background/src/transports/ToSecureUITransportSender.ts b/packages/secure-background/src/transports/ToSecureUITransportSender.ts index 7bd0ad90c..ce05eef38 100644 --- a/packages/secure-background/src/transports/ToSecureUITransportSender.ts +++ b/packages/secure-background/src/transports/ToSecureUITransportSender.ts @@ -45,7 +45,7 @@ export class ToSecureUITransportSender< globalThis.chrome?.runtime?.onConnect.addListener((port) => { logger.debug("Plugin Connected", port.name); - // if we are still connected to a differnt plugin disconnect it + // if we are still connected to a different plugin disconnect it if (this.port && this.port?.name !== port.name) { this.disconnectPlugin(this.port); } diff --git a/packages/secure-background/src/types/transports.ts b/packages/secure-background/src/types/transports.ts index 9e10a430e..2804ee08f 100644 --- a/packages/secure-background/src/types/transports.ts +++ b/packages/secure-background/src/types/transports.ts @@ -8,7 +8,7 @@ import type { import type { TransportResponder } from "../transports/TransportResponder"; type SerializeableValues = - | SolanaSignInInput // unfortunatly this is necessary due to this being an interface. + | SolanaSignInInput // unfortunately this is necessary due to this being an interface. | undefined | null | boolean diff --git a/packages/secure-clients/src/EthereumClient/ethereum/provider.ts b/packages/secure-clients/src/EthereumClient/ethereum/provider.ts index 62fa30045..8be97be67 100644 --- a/packages/secure-clients/src/EthereumClient/ethereum/provider.ts +++ b/packages/secure-clients/src/EthereumClient/ethereum/provider.ts @@ -19,7 +19,7 @@ export class EthereumProvider { ): Promise { const { walletPublicKey, ethereumClient } = ctx; - // transfrom transaction from ethers5 to ethers6 + // transform transaction from ethers5 to ethers6 const transaction = Transaction.from( ethers5.utils.serializeTransaction(tx as UnsignedTransaction) ); diff --git a/packages/secure-clients/src/SolanaClient/solanaLegacy/programs/token.ts b/packages/secure-clients/src/SolanaClient/solanaLegacy/programs/token.ts index 6a6b4d38b..7ef8ee783 100644 --- a/packages/secure-clients/src/SolanaClient/solanaLegacy/programs/token.ts +++ b/packages/secure-clients/src/SolanaClient/solanaLegacy/programs/token.ts @@ -298,7 +298,7 @@ function splitOutNfts( } } // - // Token standard not available so use decimals to determin if it's an NFT. + // Token standard not available so use decimals to determine if it's an NFT. // else { const mint = mintsMap.get(token.mint.toString()); diff --git a/packages/secure-clients/src/TensorClient/TensorClient.ts b/packages/secure-clients/src/TensorClient/TensorClient.ts index ffdae0ea7..5558ce9f7 100644 --- a/packages/secure-clients/src/TensorClient/TensorClient.ts +++ b/packages/secure-clients/src/TensorClient/TensorClient.ts @@ -466,7 +466,7 @@ export class TensorClient { return true; } - // group attribues by type (same type -> OR, different type -> AND) + // group attributes by type (same type -> OR, different type -> AND) const groupedAttributes: { [type: string]: string[]; } = {}; diff --git a/packages/secure-ui/src/_atoms/requestAtoms.ts b/packages/secure-ui/src/_atoms/requestAtoms.ts index 6a9731c11..f6d757378 100644 --- a/packages/secure-ui/src/_atoms/requestAtoms.ts +++ b/packages/secure-ui/src/_atoms/requestAtoms.ts @@ -117,7 +117,7 @@ export const currentRequestAtom = selector !event.responded); // if we dont have any pending, return the last already responded event // so the screen does not go blank while animating out. - // automatically disables intracting with responded events. + // automatically disables interacting with responded events. return nextPending ?? queue[0] ?? null; }, // this prevents recoil from freezing the object in dev mode diff --git a/packages/secure-ui/src/_atoms/solanaMutatedTransactionAtom.ts b/packages/secure-ui/src/_atoms/solanaMutatedTransactionAtom.ts index 5eaebabb8..4f0271a16 100644 --- a/packages/secure-ui/src/_atoms/solanaMutatedTransactionAtom.ts +++ b/packages/secure-ui/src/_atoms/solanaMutatedTransactionAtom.ts @@ -64,7 +64,7 @@ export const solanaMutatedTransactionAtom = selectorFamily< ); return mutatedTx; } catch { - // if somethign fails return original transaction + // if something fails return original transaction return request.tx; } }, diff --git a/packages/secure-ui/src/_atoms/solanaTxDowngradableAccountsAtom.ts b/packages/secure-ui/src/_atoms/solanaTxDowngradableAccountsAtom.ts index 40db43ed8..9e96b8310 100644 --- a/packages/secure-ui/src/_atoms/solanaTxDowngradableAccountsAtom.ts +++ b/packages/secure-ui/src/_atoms/solanaTxDowngradableAccountsAtom.ts @@ -61,7 +61,7 @@ export const solanaTxDowngradableAccountsAtom = selectorFamily< return true; } else if (!simulationAccount) { // TODO: This just means the simulation RPC response doesn't have the account - // could be an indetermine state of the account. + // could be an indeterminate state of the account. return false; } return ( diff --git a/packages/tamagui-core/src/components/ProxyImage.tsx b/packages/tamagui-core/src/components/ProxyImage.tsx index 39a186c5c..c3a181720 100644 --- a/packages/tamagui-core/src/components/ProxyImage.tsx +++ b/packages/tamagui-core/src/components/ProxyImage.tsx @@ -6,7 +6,7 @@ import { type StyleProp, } from "react-native"; -// React Native apps need to specifcy a width and height for remote images +// React Native apps need to specify a width and height for remote images export const ProxyImage = ({ onError, src,