From 5e99ec9beba652a34de71b24d738042a5aaeccec Mon Sep 17 00:00:00 2001 From: Olemis Lang Date: Wed, 12 Feb 2020 10:32:04 -0500 Subject: [PATCH] [util] refs #230 - Fix infinite recursion on SimpleWalletAddress methods --- src/util/wallet.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/wallet.go b/src/util/wallet.go index 3fb2c472..a3bd9d7d 100644 --- a/src/util/wallet.go +++ b/src/util/wallet.go @@ -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