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

Addr ref helper #872

Closed
wants to merge 4 commits into from
Closed

Addr ref helper #872

wants to merge 4 commits into from

Conversation

ethanfrey
Copy link
Member

Closes #868
Alternative to #869 (close that if we take this)

This solves the AddrRef need for use in cosmwasm-plus contracts and includes nice helpers for conversion between Addr and AddrRef.

AddrRef::unchecked is a const fn, so we can use like:

const foo = AddrRef::unchecked("foo");
call_with_addr(foo.into());

@ethanfrey
Copy link
Member Author

There are better solutions to this "problem". See CosmWasm/cw-plus#264 and CosmWasm/cw-plus#265 and it belongs in storage-plus anyway.

@ethanfrey ethanfrey closed this Apr 12, 2021
@webmaster128 webmaster128 deleted the addr-ref-helper branch April 12, 2021 13:49
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 this pull request may close these issues.

Extend Addr implementation
1 participant