From 425c6a0d2a17e6bbc2a2d14cda2886a46a984b63 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Thu, 6 Jan 2022 18:45:47 -0500 Subject: [PATCH] language fix --- docs/tutorials/go-built-in.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/go-built-in.md b/docs/tutorials/go-built-in.md index 7185fc6b4..b5a8c17c4 100644 --- a/docs/tutorials/go-built-in.md +++ b/docs/tutorials/go-built-in.md @@ -307,7 +307,9 @@ Let's modify our `Commit` method to persist the new state to the database: ```go func (app *KVStoreApplication) Commit() abcitypes.ResponseCommit { - app.pendingBlock.Commit() + if err := app.pendingBlock.Commit(); err != nil { + log.Panicf("Error writing to database, unable to commit block: %v", err) + } return abcitypes.ResponseCommit{Data: []byte{}} } ``` @@ -346,7 +348,7 @@ func (app *KVStoreApplication) Query(req abcitypes.RequestQuery) abcitypes.Respo ## 1.3.4 Additional Methods -You'll noticed that we left several methods unchanged. Specifically, we have yet +You'll notice that we left several methods unchanged. Specifically, we have yet to implement the `Info` and `InitChain` methods and we did not implement any of the `*Snapthot` methods. These methods are all important for running Tendermint applications in production but are not required for getting a very simple application