From d18ad6eec874911dee028a070cbc2a4bac17cdcd Mon Sep 17 00:00:00 2001 From: riskrose Date: Fri, 18 Apr 2025 16:27:53 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: riskrose --- docs/gravity-bridge/dev-setup-guide.md | 2 +- memiavl/README.md | 2 +- memiavl/snapshot.go | 2 +- x/cronos/rpc/api.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/gravity-bridge/dev-setup-guide.md b/docs/gravity-bridge/dev-setup-guide.md index 5242cb4284..69960c249f 100644 --- a/docs/gravity-bridge/dev-setup-guide.md +++ b/docs/gravity-bridge/dev-setup-guide.md @@ -118,7 +118,7 @@ message DelegateKeysSignMsg { } ``` -Use your favorite protobuf library to encode the message, and use your favorite web3 library to do the messge signing, +Use your favorite protobuf library to encode the message, and use your favorite web3 library to do the message signing, for example, this is how it could be done in python: ```python diff --git a/memiavl/README.md b/memiavl/README.md index 3fcf03358a..506f771d17 100644 --- a/memiavl/README.md +++ b/memiavl/README.md @@ -56,7 +56,7 @@ payload: repeat with next version ``` -- Change set files can be splited with certain block ranges for incremental backup and restoration. +- Change set files can be split with certain block ranges for incremental backup and restoration. - Historical files can be compressed with zlib, because it doesn't need to support random access. diff --git a/memiavl/snapshot.go b/memiavl/snapshot.go index 30dc1d4f97..0c8207c341 100644 --- a/memiavl/snapshot.go +++ b/memiavl/snapshot.go @@ -67,7 +67,7 @@ func OpenSnapshot(snapshotDir string) (snapshot *Snapshot, err error) { return nil, err } if len(bz) != SizeMetadata { - return nil, fmt.Errorf("wrong metadata file size, expcted: %d, found: %d", SizeMetadata, len(bz)) + return nil, fmt.Errorf("wrong metadata file size, expected: %d, found: %d", SizeMetadata, len(bz)) } magic := binary.LittleEndian.Uint32(bz) diff --git a/x/cronos/rpc/api.go b/x/cronos/rpc/api.go index ebe7076e4d..98e4ed6aae 100644 --- a/x/cronos/rpc/api.go +++ b/x/cronos/rpc/api.go @@ -202,7 +202,7 @@ func (api *CronosAPI) GetTransactionReceiptsByBlock(blockNrOrHash rpctypes.Block "blockNumber": hexutil.Uint64(blockNumber), "transactionIndex": hexutil.Uint64(txIndex), - // sender and receiver (contract or EOA) addreses + // sender and receiver (contract or EOA) addresses "from": from, "to": txData.To(), "type": hexutil.Uint(txData.Type()), @@ -336,7 +336,7 @@ func (api *CronosAPI) ReplayBlock(blockNrOrHash rpctypes.BlockNumberOrHash, post "blockNumber": hexutil.Uint64(blockNumber), "transactionIndex": hexutil.Uint64(txIndex), - // sender and receiver (contract or EOA) addreses + // sender and receiver (contract or EOA) addresses "from": from, "to": txData.GetTo(), }