From 285796aeb3b87b32142b8d744e3c5f1618b03e54 Mon Sep 17 00:00:00 2001 From: guqicun Date: Sat, 7 Dec 2024 12:39:27 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: guqicun --- examples/deserialize-transaction/src/example.ts | 2 +- packages/rpc-api/README.md | 2 +- packages/rpc-subscriptions-api/README.md | 2 +- packages/rpc/src/rpc-transport.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/deserialize-transaction/src/example.ts b/examples/deserialize-transaction/src/example.ts index 0ec16e4892c1..6fb6090b46ae 100644 --- a/examples/deserialize-transaction/src/example.ts +++ b/examples/deserialize-transaction/src/example.ts @@ -236,7 +236,7 @@ log.info( const compiledTransactionMessageDecoder = getCompiledTransactionMessageDecoder(); const compiledTransactionMessage = compiledTransactionMessageDecoder.decode(decodedTransaction.messageBytes); -// This gives us the data stucture `CompiledTransactionMessage`. This is the format that transactions are +// This gives us the data structure `CompiledTransactionMessage`. This is the format that transactions are // compiled before the entire transaction is encoded to base64 to be sent to the Solana network. // Let's inspect some fields of `compiledTransactionMessage` diff --git a/packages/rpc-api/README.md b/packages/rpc-api/README.md index 300a01ba3fa3..6950ee82f0dc 100644 --- a/packages/rpc-api/README.md +++ b/packages/rpc-api/README.md @@ -44,7 +44,7 @@ Creates a `RpcApi` implementation of the Solana JSON RPC API with some default b The default behaviours include: -- A transform that converts `bigint` inputs to `number` for compatiblity with version 1.0 of the Solana JSON RPC. +- A transform that converts `bigint` inputs to `number` for compatibility with version 1.0 of the Solana JSON RPC. - A transform that calls the config's `onIntegerOverflow` handler whenever a `bigint` input would overflow a JavaScript IEEE 754 number. See [this](https://github.com/solana-labs/solana-web3.js/issues/1116) GitHub issue for more information. - A transform that applies a default commitment wherever not specified diff --git a/packages/rpc-subscriptions-api/README.md b/packages/rpc-subscriptions-api/README.md index 289595d937ba..1208e6c9f3dd 100644 --- a/packages/rpc-subscriptions-api/README.md +++ b/packages/rpc-subscriptions-api/README.md @@ -53,7 +53,7 @@ Creates a `RpcSubscriptionsApi` implementation of the Solana JSON RPC Subscripti The default behaviours include: -- A transform that converts `bigint` inputs to `number` for compatiblity with version 1.0 of the Solana JSON RPC. +- A transform that converts `bigint` inputs to `number` for compatibility with version 1.0 of the Solana JSON RPC. - A transform that calls the config's `onIntegerOverflow` handler whenever a `bigint` input would overflow a JavaScript IEEE 754 number. See [this](https://github.com/solana-labs/solana-web3.js/issues/1116) GitHub issue for more information. - A transform that applies a default commitment wherever not specified diff --git a/packages/rpc/src/rpc-transport.ts b/packages/rpc/src/rpc-transport.ts index e6e7ce6bec5d..7b2985343cfc 100644 --- a/packages/rpc/src/rpc-transport.ts +++ b/packages/rpc/src/rpc-transport.ts @@ -33,7 +33,7 @@ export function createDefaultRpcTransport( headers: { ...(__NODEJS__ && ({ - // Keep these headers lowercase so they will be overriden by any user-supplied headers below. + // Keep these headers lowercase so they will be overridden by any user-supplied headers below. 'accept-encoding': // Natively supported by Node LTS v20.18.0 and above. 'br,gzip,deflate', // Brotli, gzip, and Deflate, in that order.