# CosmWasm v1 is in Public Beta!

**URL:** <https://forum.scrt.network/t/cosmwasm-v1-is-in-public-beta/6172>\
**Category:** Secret Network\
**Created:** [July 11, 2022, 5:49pm UTC](https://forum.scrt.network/t/cosmwasm-v1-is-in-public-beta/6172 "2022-07-11T17:49:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![assafmo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/assafmo/32/440_2.png) [@assafmo](https://forum.scrt.network/u/assafmo)\
**Post date:** [July 11, 2022, 5:49pm UTC](https://forum.scrt.network/t/cosmwasm-v1-is-in-public-beta/6172/1 "2022-07-11T17:49:01Z")

</div>

Hi all, We’re super excited to announce that CosmWasm v1 is entering public beta, one step away from public testnet! 🤩

We would love to get any and all feedback!

Test it out using LocalSecret:

```auto
docker run -it --rm -p 9091:9091 -p 26657:26657 -p 1317:1317 -p 5000:5000 \
    --name localsecret ghcr.io/scrtlabs/localsecret:v1.4.0-cw-v1-beta.2

```

LocalSecret docs: [Local Secret - Secret Network Documentation](https://docs.scrt.network/docs/development/local-secret).

Example v1 contract: [SecretNetwork/x/compute/internal/keeper/testdata/v1-sanity-contract at cosmwasm-v1 · scrtlabs/SecretNetwork · GitHub](https://github.com/scrtlabs/SecretNetwork/blob/cosmwasm-v1/x/compute/internal/keeper/testdata/v1-sanity-contract)  
It was ported [from this v0.10 contract](https://github.com/scrtlabs/SecretNetwork/blob/cosmwasm-v1/x/compute/internal/keeper/testdata/test-contract) + added `reply()` examples, so you can look at what changed for a lot of use cases.

CosmWasm v1 docs: [Introduction | CosmWasm Documentation](https://docs.cosmwasm.com/docs/1.0)  
It’s slightly different for Secret but you can get the general idea from it. E.g. iterators are not supported (yet), migrating contracts is not allowed (yet), etc.

Dependencies (`Cargo.toml`):

```auto
cosmwasm-std = { git = "https://github.com/scrtlabs/cosmwasm", branch = "secret" }
cosmwasm-storage = { git = "https://github.com/scrtlabs/cosmwasm", branch = "secret" }

```

We’ve yet to test `cw-plus`, so we would love to get your feedback if you use it.

Old CosmWasm v0.10 contracts should work just the same and can call and by called by new v1 contracts, so teams are encouraged to test their existing v0.10 contracts too (even though all regression tests are passing).

Client libraries are the same as v1.3 (`secret.js`, `secretcli`).

Known issues:

- Reply() - There’s an unnecessary base64 wrapping that’s (for now) needed to be unwrapped in the calling contract ([example](https://github.com/scrtlabs/SecretNetwork/blob/013a83a6/x/compute/internal/keeper/testdata/v1-sanity-contract/src/contract.rs#L747)).
- Error messages as a result of v1 `StdError` and `panic` are not finalized yet and are subject to change.
- IBC receive hooks are not implemented yet but will be soon (we’ll post an update here).

Feedback channels:

- Comment here in this thread.
- Tag `@SCRT Labs` in one of the dev channels on [Discord](https://chat.scrt.network).

---

<div class="post-metadata">

**Author:** ![darwinzer0](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/darwinzer0/32/1009_2.png) [@darwinzer0](https://forum.scrt.network/u/darwinzer0)\
**Post date:** [July 21, 2022, 2:14am UTC](https://forum.scrt.network/t/cosmwasm-v1-is-in-public-beta/6172/2 "2022-07-21T02:14:46Z")

</div>

Is the handle entry point supposed to be called `handle` or `execute`? I’m seeing some contradictory info in the cosmwasm 1.0 documentation:

- [entry\_point in cosmwasm\_std - Rust](https://docs.rs/cosmwasm-std/1.0.0/cosmwasm_std/attr.entry_point.html)
- [Entry points | CosmWasm Documentation](https://docs.cosmwasm.com/docs/1.0/smart-contracts/entry-points)

I’m assuming that it is `execute` based on the example contract but just want to make sure, because the first link above says it should be `handle`.

---

<div class="post-metadata">

**Author:** ![assafmo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/assafmo/32/440_2.png) [@assafmo](https://forum.scrt.network/u/assafmo)\
**Post date:** [July 21, 2022, 5:30am UTC](https://forum.scrt.network/t/cosmwasm-v1-is-in-public-beta/6172/3 "2022-07-21T05:30:51Z")

</div>

It’s indeed `execute`. Thanks for the feedback, we’ll rely it to the CosmWasm team.

---

<div class="post-metadata">

**Author:** ![assafmo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/assafmo/32/440_2.png) [@assafmo](https://forum.scrt.network/u/assafmo)\
**Post date:** [July 21, 2022, 5:49am UTC](https://forum.scrt.network/t/cosmwasm-v1-is-in-public-beta/6172/4 "2022-07-21T05:49:14Z")

</div>

[`s/handle/execute/` in `entry_point!` docs by assafmo · Pull Request #1372 · CosmWasm/cosmwasm · GitHub](https://github.com/CosmWasm/cosmwasm/pull/1372) 😊

---

<div class="post-metadata">

**Author:** ![laura](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/laura/32/911_2.png) [@laura](https://forum.scrt.network/u/laura)\
**Post date:** [August 5, 2022, 6:57pm UTC](https://forum.scrt.network/t/cosmwasm-v1-is-in-public-beta/6172/5 "2022-08-05T18:57:49Z")

</div>

Just linking the migration guide here so people can find it in Secret docs!

[Migration from CW 0.10 to 1.0 - Secret Network Documentation (scrt.network)](https://docs.scrt.network/secret-network-documentation/development/migration-from-cw-0.10-to-1.0)
