Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jul 5, 2024
1 parent 26f85e5 commit 323ebc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions contracts/BytesHelperLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity =0.8.7;

library BytesHelperLib {
error OffsetOutOfBounds();

function bytesToAddress(
bytes calldata data,
uint256 offset
Expand Down Expand Up @@ -51,11 +51,10 @@ library BytesHelperLib {
return bech32Bytes;
}

function bytesToBool(bytes calldata data, uint256 offset)
internal
pure
returns (bool)
{
function bytesToBool(
bytes calldata data,
uint256 offset
) internal pure returns (bool) {
if (offset >= data.length) {
revert OffsetOutOfBounds();
}
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export const deposit = async function (
erc20,
message,
}: {
chain: string;
amount: string;
recipient: string;
chain: string;
erc20?: string;
message?: [string[], string[]];
recipient: string;
}
) {
let signer;
Expand Down Expand Up @@ -98,9 +98,9 @@ export const deposit = async function (
throw new Error(`No TSS contract found for ${chain} chain.`);
}
const tx = {
data,
to: tss,
value: ethers.utils.parseUnits(amount, 18),
data,
};
return await signer.sendTransaction(tx);
}
Expand Down

0 comments on commit 323ebc8

Please sign in to comment.