Skip to content

Commit

Permalink
chore: fix some function names
Browse files Browse the repository at this point in the history
Signed-off-by: mountdisk <mountdisk@icloud.com.>
  • Loading branch information
mountdisk committed Aug 16, 2024
1 parent fb7196c commit f11a923
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion accounts/abi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (t Type) pack(v reflect.Value) ([]byte, error) {
}
}

// requireLengthPrefix returns whether the type requires any sort of length
// requiresLengthPrefix returns whether the type requires any sort of length
// prefixing.
func (t Type) requiresLengthPrefix() bool {
return t.T == StringTy || t.T == BytesTy || t.T == SliceTy
Expand Down
2 changes: 1 addition & 1 deletion accounts/scwallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ func (w *Wallet) SignHash(account accounts.Account, text []byte) ([]byte, error)
return w.signHash(account, accounts.TextHash(text))
}

// SignTextWithPassphrase implements accounts.Wallet, attempting to sign the
// SignHashWithPassphrase implements accounts.Wallet, attempting to sign the
// given hash with the given account using passphrase as extra authentication
func (w *Wallet) SignHashWithPassphrase(account accounts.Account, passphrase string, text []byte) ([]byte, error) {
return w.signHashWithPassphrase(account, passphrase, crypto.Keccak256(accounts.TextHash(text)))
Expand Down
2 changes: 1 addition & 1 deletion consensus/cbft/cbft_byzantine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func FakeViewChangeQC(t *testing.T, node *TestCBFT, epoch, viewNumber uint64, no
return viewChangeQC
}

// NewBlock returns a bad block for testing.
// NewBadBlock returns a bad block for testing.
func NewBadBlock(parent common.Hash, number uint64, node *TestCBFT) *types.Block {
header := &types.Header{
Number: big.NewInt(int64(number)),
Expand Down

0 comments on commit f11a923

Please sign in to comment.