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

chore: fix some comments #1074

Open
wants to merge 1 commit 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/libs/eip191.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function getPubkeyFromEthSignatures(rawMsg: Uint8Array, sigResult: string
// On ETHland pubkeys are recovered from signatures, so we're going to:
// 1. sign something
// 2. recover the pubkey from the signature
// 3. derive a secret address from the the pubkey
// 3. derive a secret address from the pubkey

// strip leading 0x and extract recovery id
const sig = fromHex(sigResult.slice(2, -2));
Expand Down
2 changes: 1 addition & 1 deletion src/pages/BitcoinDashboard/hooks/lcd.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const getCheckpointData = async (checkpointIndex?: number): Promise<CheckpointPa
const res = await axios.get(`/bitcoin/checkpoint/${checkpointIndex}`, {});
let data = res.data.data;
let status = data.status;
// Slice 1 to remove the input of previosu checkpoint
// Slice 1 to remove the input of previous checkpoint
data.transaction.data.input = data.transaction.data.input.slice(1).map((item: TransactionInput) => {
let [txid, vout] = item.previous_output.split(':');
return {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/BitcoinDashboardV2/hooks/lcd.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const getCheckpointData = async (checkpointIndex?: number): Promise<CheckpointPa
});
let data = res.data.data;
let status = data.status;
// Slice 1 to remove the input of previosu checkpoint
// Slice 1 to remove the input of previous checkpoint
data.transaction.data.input = data.transaction.data.input.map((item: TransactionInput) => {
let [txid, vout] = item.previous_output.split(':');
return {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/UniversalSwap/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export const getDisableSwap = ({
swapLoading ||
!fromAmountToken ||
!toAmountToken ||
fromAmountTokenBalance > fromTokenBalance || // insufficent fund
fromAmountTokenBalance > fromTokenBalance || // insufficient fund
!addressTransfer ||
!validAddress.isValid ||
isLoadingSimulate ||
Expand Down