Skip to content

Commit

Permalink
chore(docs): deploy version v28.5.0 (#4258)
Browse files Browse the repository at this point in the history
Co-authored-by: julienrbrt <[email protected]>
Co-authored-by: Danny <[email protected]>
  • Loading branch information
3 people authored Jul 16, 2024
1 parent 30122e3 commit b946260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/versioned_docs/version-v28/06-migration/v28.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ This guide provides a step-by-step process for developers to upgrade their appli
- **Old Code**:

```go
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PostKey))
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PostKey))

```

- **New Code**:

```go
storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PostKey))
storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PostKey))
```

Expand Down

0 comments on commit b946260

Please sign in to comment.