Skip to content

Commit

Permalink
removed pupose from config
Browse files Browse the repository at this point in the history
  • Loading branch information
bizk committed Nov 28, 2023
1 parent 2cdd14c commit e3bd0d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions types/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,11 +740,6 @@ func (config *AddressConfig) SetPurpose(purpose uint32) {
config.purpose = purpose
}

// GetPurpose returns the BIP-0044 Purpose code on the config.
func (config *AddressConfig) GetPurpose() uint32 {
return config.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
9 changes: 0 additions & 9 deletions types/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ func TestConfigTestSuite(t *testing.T) {
suite.Run(t, new(configTestSuite))
}

func (s *contextTestSuite) TestConfig_SetPurpose() {
config := sdk.NewAddressConfig()
config.SetPurpose(44)
s.Require().Equal(uint32(44), config.GetPurpose())

config.SetPurpose(0)
s.Require().Equal(uint32(0), config.GetPurpose())
}

func (s *configTestSuite) TestConfig_SetTxEncoder() {
mockErr := errors.New("test")
config := sdk.NewConfig()
Expand Down

0 comments on commit e3bd0d2

Please sign in to comment.