Skip to content

Commit

Permalink
[util] refs #230 - Fix infinite recursion on SimpleWalletAddress methods
Browse files Browse the repository at this point in the history
  • Loading branch information
olemis committed Feb 12, 2020
1 parent 59830e9 commit 5e99ec9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/util/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,27 @@ func (wa *SimpleWalletAddress) String() string {

// GetCryptoAccount provides access to address transaction history
func (wa *SimpleWalletAddress) GetCryptoAccount() core.CryptoAccount {
return wa.GetCryptoAccount()
return wa.Address.GetCryptoAccount()
}

// Bytes binary representation for address
func (wa *SimpleWalletAddress) Bytes() []byte {
return wa.Bytes()
return wa.Address.Bytes()
}

// Checksum computes address consistency token
func (wa *SimpleWalletAddress) Checksum() core.Checksum {
return wa.Checksum()
return wa.Address.Checksum()
}

// Verify checks that the address appears valid for the public key
func (wa *SimpleWalletAddress) Verify(pubkey core.PubKey) error {
return wa.Verify(pubkey)
return wa.Address.Verify(pubkey)
}

// Null returns true if the address is null
func (wa *SimpleWalletAddress) Null() bool {
return wa.Null()
return wa.Address.Null()
}

// Type assertions
Expand Down

0 comments on commit 5e99ec9

Please sign in to comment.