From 3c72cf21770c87d7a8ddf8a280ae6145c56cd0ba Mon Sep 17 00:00:00 2001 From: murongshaozong Date: Wed, 19 Mar 2025 17:26:11 +0800 Subject: [PATCH] chore: make function comment match function name Signed-off-by: murongshaozong --- shlib/shcrypto/encoding.go | 2 +- shuttermint/app/app.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shlib/shcrypto/encoding.go b/shlib/shcrypto/encoding.go index 42bebf3..709fe03 100644 --- a/shlib/shcrypto/encoding.go +++ b/shlib/shcrypto/encoding.go @@ -76,7 +76,7 @@ func (eonSecretKeyShare *EonSecretKeyShare) Marshal() []byte { return (*big.Int)(eonSecretKeyShare).Bytes() } -// Unarshal deserializes an eon secret key share. +// Unmarshal deserializes an eon secret key share. func (eonSecretKeyShare *EonSecretKeyShare) Unmarshal(m []byte) error { (*big.Int)(eonSecretKeyShare).SetBytes(m) if (*big.Int)(eonSecretKeyShare).Cmp(order) >= 0 { diff --git a/shuttermint/app/app.go b/shuttermint/app/app.go index 9b5450d..94c0c6a 100644 --- a/shuttermint/app/app.go +++ b/shuttermint/app/app.go @@ -793,7 +793,7 @@ func (app *ShutterApp) EndBlock(req abcitypes.RequestEndBlock) abcitypes.Respons return abcitypes.ResponseEndBlock{ValidatorUpdates: validatorUpdates} } -// persistToDisk stores the ShutterApp on disk. This method first writes to a temporary file and +// PersistToDisk stores the ShutterApp on disk. This method first writes to a temporary file and // renames the file later. Most probably this will not work on windows! func (app *ShutterApp) PersistToDisk() error { log.Printf("Persisting state to disk, height=%d", app.LastBlockHeight)