You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SigningCosmWasmClient from cosmjs has a constructor that takes options through SigningCosmWasmClientOptions, however these options do not any way to configure the account parse that's used for functions like SigningCosmWasmClient.getAccounts.
A possible solution is that we can either extend or create a wrapper for the NibiruTxClient to accept ethaccounts. Found this script that allows signing and simulating Cosmos-EVM transactions using Keplr:
signEvmWithKeplr: It fetches account details, constructs a transaction, and signs it using Keplr for Cosmos-EVM chains like Sei Network and Evmos. The signed transaction is returned ready for broadcast.
simulateEvmWithKeplr: It simulates a transaction to estimate gas usage by creating and sending a mock transaction without broadcasting it.
[Click to expand constructor code block]
exportclassSigningCosmWasmClientextendsCosmWasmClient{publicreadonlyregistry: Registry;publicreadonlybroadcastTimeoutMs: number|undefined;publicreadonlybroadcastPollIntervalMs: number|undefined;privatereadonlysigner: OfflineSigner;privatereadonlyaminoTypes: AminoTypes;privatereadonlygasPrice: GasPrice|undefined;/** * Creates an instance by connecting to the given CometBFT RPC endpoint. * * This uses auto-detection to decide between a CometBFT 0.38, Tendermint 0.37 and 0.34 client. * To set the Comet client explicitly, use `createWithSigner`. */publicstaticasyncconnectWithSigner(endpoint: string|HttpEndpoint,signer: OfflineSigner,options: SigningCosmWasmClientOptions={},): Promise<SigningCosmWasmClient>{constcometClient=awaitconnectComet(endpoint);returnSigningCosmWasmClient.createWithSigner(cometClient,signer,options);}/** * Creates an instance from a manually created Comet client. * Use this to use `Comet38Client` or `Tendermint37Client` instead of `Tendermint34Client`. */publicstaticasynccreateWithSigner(cometClient: CometClient,signer: OfflineSigner,options: SigningCosmWasmClientOptions={},): Promise<SigningCosmWasmClient>{returnnewSigningCosmWasmClient(cometClient,signer,options);}
The text was updated successfully, but these errors were encountered:
github-actionsbot
added
the
S-triage
Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5
label
Oct 4, 2024
Unique-Divine
removed
the
S-triage
Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5
label
Oct 5, 2024
Purpose
Unsupported type: '/eth.types.v1.EthAccount'
with brand new keplr wallet #371Description
The SigningCosmWasmClient from cosmjs has a constructor that takes options through
SigningCosmWasmClientOptions
, however these options do not any way to configure the account parse that's used for functions likeSigningCosmWasmClient.getAccounts
.@CalicoNino posted a comment in #371 (comment) with more details:
[Click to expand constructor code block]
The text was updated successfully, but these errors were encountered: