Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typos in documentation files #157

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/contexts/SwapProvider/SwapProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export function SwapContextProvider({ children }: { children: any }) {
* Some notes:
*
* - Requires a feature flag to be enabled.
* - When transfering AVAX, it performs the usual eth_sendTransaction request.
* - When transferring AVAX, it performs the usual eth_sendTransaction request.
* - If the allowance covers the transfer amount, it performs the usual eth_sendTransaction request
*/
const oneClickSwap = useCallback(
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/SwapProvider/swap-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export function checkForErrorsInGetRateResult(
if (shouldBeRetried) {
return true;
// If an error occurred, but there is no point in retrying a request,
// we need to propagate the error so we're able to show an approriate
// we need to propagate the error so we're able to show an appropriate
// message in the UI.
} else if (isFetchError) {
throw swapError(CommonError.NetworkError, response);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/getHexStringToBytes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function getHexStringToBytes(hex: string): number | null {
if (!hex) return null;

// the first 2 chars can be ignore since it indicates the hexidecimal representaion ( -2 )
// the first 2 chars can be ignore since it indicates the hexadecimal representation ( -2 )
// the reason byte size is calculated this way => F in hex is the biggest number which can be represented with 4 bits (1111)
// therefore 2 chars at a time can be represented in 1 byte which is 8 bits
// so the byte value of a hex is the half of the character count
Expand Down
2 changes: 1 addition & 1 deletion src/utils/keystore/cryptoHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const decrypt = async (
{
name: 'AES-GCM',
iv, // The initialization vector you used to encrypt
additionalData: salt, // The addtionalData you used to encrypt (if any)
additionalData: salt, // The additionalData you used to encrypt (if any)
tagLength: TAG_LENGTH, // The tagLength you used to encrypt (if any)
},
pkey, // from importKey above
Expand Down