Skip to content

Commit

Permalink
chore: fix some function names in comment (#4384)
Browse files Browse the repository at this point in the history
Signed-off-by: hanghuge <[email protected]>
Co-authored-by: Haiko Schol <[email protected]>
  • Loading branch information
hanghuge and haikoschol authored Dec 10, 2024
1 parent 188b910 commit 4133ea8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/gossamer/commands/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestAccountImport(t *testing.T) {
require.NoError(t, err)
}

// TestAccountImport test "gossamer account import-raw --password --key"
// TestAccountImportRaw test "gossamer account import-raw --password --key"
func TestAccountImportRaw(t *testing.T) {
testDir := t.TempDir()
directory := fmt.Sprintf("--keystore-path=%s", testDir)
Expand Down
2 changes: 1 addition & 1 deletion dot/network/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func isInbound(stream libp2pnetwork.Stream) bool {
return stream.Stat().Direction == libp2pnetwork.DirInbound
}

// stringToAddrInfos converts a single string peer id to AddrInfo
// stringToAddrInfo converts a single string peer id to AddrInfo
func stringToAddrInfo(s string) (peer.AddrInfo, error) {
maddr, err := multiaddr.NewMultiaddr(s)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion dot/state/grandpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func (s *GrandpaState) IncrementSetID() (newSetID uint64, err error) {
return newSetID, nil
}

// setSetIDChangeAtBlock sets a set ID change at a certain block
// setChangeSetIDAtBlock sets a set ID change at a certain block
func (s *GrandpaState) setChangeSetIDAtBlock(setID uint64, number uint) error {
return s.db.Put(setIDChangeKey(setID), common.UintToBytes(number))
}
Expand Down

0 comments on commit 4133ea8

Please sign in to comment.