Skip to content
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

Add funds to contract execution #15

Closed
iboss-ptk opened this issue Aug 27, 2022 · 2 comments
Closed

Add funds to contract execution #15

iboss-ptk opened this issue Aug 27, 2022 · 2 comments

Comments

@iboss-ptk
Copy link

Is your feature request related to a problem? Please describe.
When contract execution requires funds, cosmy wasmy can't add funds to the execution.

Describe the solution you'd like
Take this contract for example, it sends stargate msg to osmosis' tokenfactory to create denom, and it requires creation fee.

It would be nice if we can add ##funds as an addition input for contract execution, parsed as coins and pass them to the execute function and strip them out before actually sending the msg. (could just extract and strip it here?)

{
  "create_denom": {
    "subdenom": "poopcoin",
    "initial_mint": "10000000000"
  },
  "##funds": [
    "1000000000uosmo"
  ]
}

Happy to contribute if you agree with the approach!

@spoo-bar
Copy link
Owner

Yuupp. I been thinking on how to include option to send funds during msg call.
api.ts, as you linked, is a good place to handle that.

Would love your contribution :)

@spoo-bar
Copy link
Owner

Implemented and released in v2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants