Skip to content

Commit

Permalink
removed setPurpose
Browse files Browse the repository at this point in the history
  • Loading branch information
bizk committed Nov 28, 2023
1 parent e3bd0d2 commit 999633c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions client/keys/add_ledger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func Test_runAddCmdLedgerWithCustomCoinType(t *testing.T) {
config.SetBech32PrefixForConsensusNode(bech32PrefixConsAddr, bech32PrefixConsPub)

addressConfig := sdk.GetAddressConfig()
addressConfig.SetPurpose(44)

// Prepare a keybase
kbHome := t.TempDir()
Expand Down Expand Up @@ -90,7 +89,6 @@ func Test_runAddCmdLedgerWithCustomCoinType(t *testing.T) {
"PubKeySecp256k1{03028F0D5A9FD41600191CDEFDEA05E77A68DFBCE286241C0190805B9346667D07}",
pub.String())

addressConfig.SetPurpose(44)
clientCtx = clientCtx.WithAddressConfig(*addressConfig)

config.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub)
Expand Down
5 changes: 0 additions & 5 deletions types/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,6 @@ func NewAddressConfig() *AddressConfig {
}
}

// Set the BIP-0044 Purpose code on the config
func (config *AddressConfig) SetPurpose(purpose uint32) {
config.purpose = purpose
}

// GetFullBIP44Path returns the BIP44Prefix.
func (config *AddressConfig) GetFullBIP44Path() string {
return fmt.Sprintf("m/%d'/%d'/0'/0/0", config.purpose, config.coinType)
Expand Down

0 comments on commit 999633c

Please sign in to comment.