From ec9bdcabb453b69f6c5e50c0c2e252854d303f57 Mon Sep 17 00:00:00 2001 From: elshenak Date: Fri, 4 Oct 2024 11:21:23 -0400 Subject: [PATCH] chore: pr comments --- src/sdk/tx/account.ts | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/sdk/tx/account.ts b/src/sdk/tx/account.ts index cf3a2f40..75d2fe05 100644 --- a/src/sdk/tx/account.ts +++ b/src/sdk/tx/account.ts @@ -11,15 +11,17 @@ import { BaseAccount } from "src/protojs/cosmos/auth/v1beta1/auth" * @param {EthAccount} ethAccount - The EthAccount object containing the account's base information. * @returns {Account} The Cosmos account object. */ -export const accountFromEthAccount = (baseAccount: BaseAccount): Account => { - const { address, pubKey, accountNumber, sequence } = baseAccount - return { - address, - pubkey: decodeOptionalPubkey(pubKey), - accountNumber: accountNumber.toNumber(), - sequence: sequence.toNumber(), - } -} +export const accountFromEthAccount = ({ + address, + pubKey, + accountNumber, + sequence, +}: BaseAccount): Account => ({ + address, + pubkey: decodeOptionalPubkey(pubKey), + accountNumber: accountNumber.toNumber(), + sequence: sequence.toNumber(), +}) /** * Parses an account input into a Cosmos account. Handles both EthAccount and other standard accounts.