Skip to content

Commit 6c27d8f

Browse files
authored
accounts: documentation fixes (ethereum#22645)
* replaces `an chance` with `a chance` * replaces `SignHashWithPassphrase` with `SignTextWithPassphrase` as there was no SignHashWithPasspharse function in the file
1 parent 9c653ff commit 6c27d8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

accounts/accounts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ type Wallet interface {
113113
SignData(account Account, mimeType string, data []byte) ([]byte, error)
114114

115115
// SignDataWithPassphrase is identical to SignData, but also takes a password
116-
// NOTE: there's an chance that an erroneous call might mistake the two strings, and
116+
// NOTE: there's a chance that an erroneous call might mistake the two strings, and
117117
// supply password in the mimetype field, or vice versa. Thus, an implementation
118118
// should never echo the mimetype or return the mimetype in the error-response
119119
SignDataWithPassphrase(account Account, passphrase, mimeType string, data []byte) ([]byte, error)
@@ -127,7 +127,7 @@ type Wallet interface {
127127
// a password to decrypt the account, or a PIN code o verify the transaction),
128128
// an AuthNeededError instance will be returned, containing infos for the user
129129
// about which fields or actions are needed. The user may retry by providing
130-
// the needed details via SignHashWithPassphrase, or by other means (e.g. unlock
130+
// the needed details via SignTextWithPassphrase, or by other means (e.g. unlock
131131
// the account in a keystore).
132132
//
133133
// This method should return the signature in 'canonical' format, with v 0 or 1

0 commit comments

Comments
 (0)