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),