-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HELP] Wasm Precompile Execute Issue #2103
Comments
Hey, could it be that you haven't given this execute enough gas to execute? If it gives you a transaction hash, try using "cast" from the Foundry CLI on the 0x hash to see more info about the tx and its run. I see that you're using CW for the VM, but EVM for the RPC interface. Is it possible to either a.) use EVM for the contract or B.) use the cosmos RPC interface to call the wasm contract through a standard cosmos tx msg. |
Thanks for replying!
I tried this. Earlier when I was trying to pass
I have written a CosmWasm contract for a coin flip game, and on Discord, I found out that the Pointer Contract only exists for tokens, so the only option to access the contract on EVM was the Wasm Precompile. |
One thing I noticed and having issues with, is that we can't use events with Wasm Precompile. Like, this is a transaction that I did - https://seitrace.com/tx/0x016c3491e500c7740c1543666afbbdc3bf7e7b4680a0c54e3def64da2d405d7b?chain=atlantic-2 You can see there is a This is how I am doing the transaction - https://github.com/hsnice16/cw-flip-coin-ui/blob/main/src/util/contract.ts#L105 -- Am I thinking in the right direction about missing events? -- I had also taken a screenshot if this helps. ![]() -- p.s. I was checking if I can listen for events on the CosmWasm side, It seems like if we have a web socket for the RPC, we can do that, but I didn't find it anywhere in the doc. |
Thanks for the help! I figured out how we can get events on the CosmWasm and have completed this project. And, if anyone wants to play 😅 - https://flipsei.vercel.app/ I am closing this issue. |
I have created a CosmWasm contract for the flip coin game, and have deployed it on the
atlantic-2
chain. Now, I was using the Wasm precompile to use the deployed contract. But I am running into the following issueI am not sure if this is a known issue, or not, so it would have been nice if someone could help.
Also, not sure if this is the right repository to raise this issue, so sorry if that's not.
--
This is the function I am using
And, these are the constants
This is the ethers version
--
This is the project if anyone needs more info - https://github.com/hsnice16/cw-flip-coin-ui/blob/main/src/component/Input.tsx#L65
--
Let me know if needs any other info
The text was updated successfully, but these errors were encountered: