diff --git a/docs/docs/guide/03-blog/02-connect-blockchain.md b/docs/docs/guide/03-blog/02-connect-blockchain.md index a11eac3ad2..43302b2e36 100644 --- a/docs/docs/guide/03-blog/02-connect-blockchain.md +++ b/docs/docs/guide/03-blog/02-connect-blockchain.md @@ -107,9 +107,14 @@ func main() { log.Fatal(err) } + addr, err := account.Address(addressPrefix) + if err != nil { + log.Fatal(err) + } + // Define a message to create a post msg := &types.MsgCreatePost{ - Creator: account.Address(addressPrefix), + Creator: addr, Title: "Hello!", Body: "This is the first post", }