From f9a1776555d07fbc09039a1ede2dfc7a62373178 Mon Sep 17 00:00:00 2001 From: Gancho Radkov Date: Tue, 7 May 2024 16:21:31 +0300 Subject: [PATCH] chore: solana lint --- packages/solana/src/client.ts | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/packages/solana/src/client.ts b/packages/solana/src/client.ts index 44d87d18db..8c815b0764 100644 --- a/packages/solana/src/client.ts +++ b/packages/solana/src/client.ts @@ -147,9 +147,7 @@ export class Web3Modal extends Web3ModalScaffold { return signature as string }, - estimateGas: async () => { - return await Promise.resolve(BigInt(0)) - }, + estimateGas: async () => await Promise.resolve(BigInt(0)), // -- Transaction methods --------------------------------------------------- /** @@ -157,21 +155,13 @@ export class Web3Modal extends Web3ModalScaffold { * These methods are supported only on `wagmi` and `ethers` since the Solana SDK does not support them in the same way. * These function definition is to have a type parity between the clients. Currently not in use. */ - sendTransaction: async () => { - return await Promise.resolve('0x') - }, + sendTransaction: async () => await Promise.resolve('0x'), - writeContract: async () => { - return await Promise.resolve('0x') - }, + writeContract: async () => await Promise.resolve('0x'), - getEnsAddress: async (value: string) => { - return await Promise.resolve(value) - }, + getEnsAddress: async (value: string) => await Promise.resolve(value), - getEnsAvatar: async (value: string) => { - return await Promise.resolve(value) - }, + getEnsAvatar: async (value: string) => await Promise.resolve(value), parseUnits: () => BigInt(0),