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

Handle proposal deposits #17

Closed
ben2x4 opened this issue Oct 18, 2021 · 0 comments · Fixed by #145
Closed

Handle proposal deposits #17

ben2x4 opened this issue Oct 18, 2021 · 0 comments · Fixed by #145
Assignees

Comments

@ben2x4
Copy link

ben2x4 commented Oct 18, 2021

The UI currently doesn't handle deposits when creating a proposal. If the DAO contract has proposal deposits enabled the front end needs to call a multi msg transaction. The first message is to the CW20-Gov token and sets an allowance for the contract to transfer the deposit amount. The second is the create proposal message to the DAO contract.

An example of a similar multi-msg transaction can be seen in the wasmswap repo. https://github.com/Wasmswap/wasmswap-interface/blob/042ce341e8c832f0ce3279b0f973e5dc0846f720/services/swap.ts#L56

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

Successfully merging a pull request may close this issue.

2 participants