Skip to content

Conversation

ethanfrey
Copy link
Contributor

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
Contributor 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