Skip to content

Commit c046f36

Browse files
committed
accounts: fix some typos (ethereum#25551)
1 parent 08fedbb commit c046f36

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

accounts/abi/reflect_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type reflectTest struct {
3232

3333
var reflectTests = []reflectTest{
3434
{
35-
name: "OneToOneCorrespondance",
35+
name: "OneToOneCorrespondence",
3636
args: []string{"fieldA"},
3737
struc: struct {
3838
FieldA int `abi:"fieldA"`

accounts/keystore/account_cache_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func waitForAccounts(wantAccounts []accounts.Account, ks *KeyStore) error {
319319
func TestUpdatedKeyfileContents(t *testing.T) {
320320
t.Parallel()
321321

322-
// Create a temporary kesytore to test with
322+
// Create a temporary keystore to test with
323323
rand.Seed(time.Now().UnixNano())
324324
dir := filepath.Join(os.TempDir(), fmt.Sprintf("eth-keystore-updatedkeyfilecontents-test-%d-%d", os.Getpid(), rand.Int()))
325325
ks := NewKeyStore(dir, LightScryptN, LightScryptP)

accounts/keystore/file_cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type fileCache struct {
3939
func (fc *fileCache) scan(keyDir string) (mapset.Set, mapset.Set, mapset.Set, error) {
4040
t0 := time.Now()
4141

42-
// List all the failes from the keystore folder
42+
// List all the files from the keystore folder
4343
files, err := os.ReadDir(keyDir)
4444
if err != nil {
4545
return nil, nil, nil, err
@@ -61,7 +61,7 @@ func (fc *fileCache) scan(keyDir string) (mapset.Set, mapset.Set, mapset.Set, er
6161
log.Trace("Ignoring file on account scan", "path", path)
6262
continue
6363
}
64-
// Gather the set of all and fresly modified files
64+
// Gather the set of all and freshly modified files
6565
all.Add(path)
6666

6767
info, err := fi.Info()

accounts/keystore/keystore_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func TestSignRace(t *testing.T) {
214214
// Tests that the wallet notifier loop starts and stops correctly based on the
215215
// addition and removal of wallet event subscriptions.
216216
func TestWalletNotifierLifecycle(t *testing.T) {
217-
// Create a temporary kesytore to test with
217+
// Create a temporary keystore to test with
218218
_, ks := tmpKeyStore(t, false)
219219

220220
// Ensure that the notification updater is not running yet

accounts/usbwallet/trezor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ func (w *trezorDriver) trezorDerive(derivationPath []uint32) (common.Address, er
197197
if _, err := w.trezorExchange(&trezor.EthereumGetAddress{AddressN: derivationPath}, address); err != nil {
198198
return common.Address{}, err
199199
}
200-
if addr := address.GetAddressBin(); len(addr) > 0 { // Older firmwares use binary fomats
200+
if addr := address.GetAddressBin(); len(addr) > 0 { // Older firmwares use binary formats
201201
return common.BytesToAddress(addr), nil
202202
}
203-
if addr := address.GetAddressHex(); len(addr) > 0 { // Newer firmwares use hexadecimal fomats
203+
if addr := address.GetAddressHex(); len(addr) > 0 { // Newer firmwares use hexadecimal formats
204204
return common.HexToAddress(addr), nil
205205
}
206206
return common.Address{}, errors.New("missing derived address")

accounts/usbwallet/wallet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func (w *wallet) selfDerive() {
380380
// of legacy-ledger, the first account on the legacy-path will
381381
// be shown to the user, even if we don't actively track it
382382
if i < len(nextAddrs)-1 {
383-
w.log.Info("Skipping trakcking first account on legacy path, use personal.deriveAccount(<url>,<path>, false) to track",
383+
w.log.Info("Skipping tracking first account on legacy path, use personal.deriveAccount(<url>,<path>, false) to track",
384384
"path", path, "address", nextAddrs[i])
385385
break
386386
}

0 commit comments

Comments
 (0)