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

Create mock_env() alternative that supports non-default address generators (aka. other bech32 prefixes) #2218

Open
webmaster128 opened this issue Aug 21, 2024 · 0 comments
Milestone

Comments

@webmaster128
Copy link
Member

Before CosmWasm 2.2, mock_env() returned an invalid address. In 2.2+, the contract address in mock_env() is valid for the default MockApi (bech32 prefix "cosmwasm"). Now it would be great to have some sort of Env mocker which returns addresses compatible with other Api implementations than cosmwasm_std::testing::MockApi.

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

1 participant