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

implement execute_cw20 and query_cw20 function for Cw4626 #19

Open
pacmanifold opened this issue Nov 9, 2022 · 0 comments
Open

implement execute_cw20 and query_cw20 function for Cw4626 #19

pacmanifold opened this issue Nov 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@pacmanifold
Copy link
Contributor

pacmanifold commented Nov 9, 2022

We should implement helper functions that handles the all the valid Cw20 messages for a Cw4626ExecuteMsg and Cw4626QueryMsg, so that these can easily be called from contract.rs in contracts trying to implement a default Cw4626 implementation. Should look something like this

pub fn cw20_execute<T>(deps: DepsMut, env: &Env, info: &MessageInfo, msg: Cw4626ExecuteMsg<T>) -> Result<Response, CwTokenError>

pub fn cw20_query<T>(deps: Deps, env: &Env, msg: Cw4626ExecuteMsg<T>) -> StdResult<Binary>
@pacmanifold pacmanifold added the enhancement New feature or request label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant