From 323ebc8b773125e953388c505f337a93ac5a5ee5 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Fri, 5 Jul 2024 17:00:14 +0300 Subject: [PATCH] lint --- contracts/BytesHelperLib.sol | 11 +++++------ packages/client/src/deposit.ts | 6 +++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/contracts/BytesHelperLib.sol b/contracts/BytesHelperLib.sol index ca6ec9fc..8266d291 100644 --- a/contracts/BytesHelperLib.sol +++ b/contracts/BytesHelperLib.sol @@ -3,7 +3,7 @@ pragma solidity =0.8.7; library BytesHelperLib { error OffsetOutOfBounds(); - + function bytesToAddress( bytes calldata data, uint256 offset @@ -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(); } diff --git a/packages/client/src/deposit.ts b/packages/client/src/deposit.ts index 6080abfb..80ce3782 100644 --- a/packages/client/src/deposit.ts +++ b/packages/client/src/deposit.ts @@ -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; @@ -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); }