-
Notifications
You must be signed in to change notification settings - Fork 56
Add examples for custom evmos Msgs #43
Comments
Here's the MsgConvertCoin source code I am adding. Not sure if I did something wrong: https://github.com/oraichain/kwtjs/blob/main/packages/transactions/src/messages/msgConvertCoin.ts |
Hi, I'm finishing a PR to add the Edit validator message. As soon as I got that ready, I'll check what is the problem with the ConvertCoin message. I usually run a test with the message that I want to include to the lib using Ethermint, something like this: https://github.com/tharsis/ethermint/blob/046cd001749c04183d6987c7baedf2788f9e039a/app/ante/utils_test.go#L258 Sorry that I don't have some easier way to add the message! I wanted to spend a week or so writing documentation to make it easier to use/collab with this lib, but I didn't have time. |
Hi. Thank you for your quick response. Please take a look: a0f3560, 7dd9db8 Also, when using Keplr, we had to use However, I have not been able to use Metamask, so I believe I will still need your help on that. Your examples that use Metamask work fine, but not for custom messages. |
Yes, you are right, the coinType I think that using I remember that there was a parameter I'll push the |
Sounds cool. Thanks for your help!. To anyone who's facing this similar issue while @hanchon is updating the docs, feel free to re-open this issue so we can discuss further. |
@ducphamle2 This PR will enable the |
@hanchon thank you for your help! This confirms my speculation that we needed to add something in the evmos repo for the messages to pass through. Again, awesome work! |
I cannot create a transaction for custom evmos Msgs (namely MsgConvertCoin) using Metamask & EIP712.
is it possible that MsgConvertCoin is not a legacy amino cosmos msg, and therefore when it is broadcast to the evmos network, the network cannot read its type?
Below is the log I printed for txData for the MsgConvertCoin msg in Etheremint repo:
As you can see, there's no type in the msgs array. Meanwhile, if I use a legacy msg like MsgSend, it appears:
Also, is there an example for creating & broadcasting a custom msg using Keplr?
It would be great if we have more examples for custom evmos Msgs & a js function or library for signing evmos transactions. Thanks!
The text was updated successfully, but these errors were encountered: