hicommonwealth / commonwealth

A platform for decentralized communities
https://commonwealth.im
GNU General Public License v3.0
67 stars 44 forks source link

[Bug]: Sending an on-chain prop on Evmos Error 'cosmos wallet not found' #7325

Closed commonwealth-issue-bot[bot] closed 6 months ago

commonwealth-issue-bot[bot] commented 7 months ago

Description

after refreshing and signing in/out contributer at lava network cannot submit a on-chain prop on evmos. They are getting the error 'cosmos wallet not found'

Internal Reporter (Growth Team)

Mitchy (@cowballzach)

Communities Affeceted

Lava Network

Initial Conditions

Environment: prod Encounter Date/Time: 8am 4/2/24 Additional Context: tbd

Reproduction Steps

try to submit a on-chain prop on evmos.

Expected Behavior

on-chain proposal on evmos should go through

Videos / Screenshots

https://files.slack.com/files-tmb/T04ATE49PM2-F06SDU2FJLS-4bea82bd9d/screenshot_2024-04-02_at_9.45.15___am_480.png

Additional Information

cowballzach commented 7 months ago

Additional Context: https://files.slack.com/files-pri/T04ATE49PM2-F06SG4KNSGK/screenshot_2024-04-02_at_3.43.34___pm.png

timolegros commented 6 months ago

@cowballzach the links do not work for me...

cowballzach commented 6 months ago

screenshot_2024-04-02_at_9 45 15___am_480

That was that link @timolegros lmk if I can help any further. ty!

timolegros commented 6 months ago

screenshot_2024-04-02_at_9 45 15___am_480

That was that link @timolegros lmk if I can help any further. ty!

What about the link in the issue? There are 2 links here (your comment and the issue).

timolegros commented 6 months ago

This bug occurs because signing in with Keplr in the Evmos community (and any EVM-compatible cosmos chain) sets the Address.wallet_id to 'keplr-ethereum' but the client only recognizes 'keplr' or 'leap' for Cosmos txn sending (see https://github.com/hicommonwealth/commonwealth/blob/master/packages/commonwealth/client/scripts/controllers/chain/cosmos/chain.ts#L192).

timolegros commented 6 months ago

Testing the solution is complicated by the fact that the Cosmos proxy is not working as intended. Getting 500 and 404 errors when trying to test with any of the sandbox environments.