Skip to content

Commit

Permalink
chore: change wallet versions to camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
mj committed Aug 24, 2024
1 parent b774da5 commit ad9f424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion wallet/vault/vault_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ func TestNewED25519AccountAddress(t *testing.T) {
assert.NotEmpty(t, addressInfo.Address)
assert.NotEmpty(t, addressInfo.PublicKey)
assert.Equal(t, "m/44'/21888'/3'/2'", addressInfo.Path)

}

func TestNewValidatorAddress(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const (
)

const (
VERSION_1 = 1 // initial version
VERSION_2 = 2 // supporting Ed25519 =
Version1 = 1 // initial version
Version2 = 2 // supporting Ed25519 =
)

type Wallet struct {
Expand Down Expand Up @@ -101,7 +101,7 @@ func Create(walletPath, mnemonic, password string, chain genesis.ChainType, opti
}

store := &store{
Version: VERSION_2,
Version: Version2,
UUID: uuid.New(),
CreatedAt: time.Now().Round(time.Second).UTC(),
Network: chain,
Expand Down

0 comments on commit ad9f424

Please sign in to comment.