make private if not part of provider interface
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -25,7 +25,7 @@ type Address struct {
|
||||
|
||||
// GetAddress returns an Address struct populated with data from blockstream.info
|
||||
// for a given BTC address
|
||||
func (c *client) GetAddress(address string) (*Address, error) {
|
||||
func (c *client) getAddress(address string) (*Address, error) {
|
||||
addressResponse := &Address{}
|
||||
|
||||
err := c.get(fmt.Sprintf("address/%s", address), addressResponse, url.Values{})
|
||||
|
@ -51,7 +51,7 @@ func (p *Provider) GetBalances() ([]int, []string, error) {
|
||||
ynabAccountIDs := make([]string, 0)
|
||||
var satoshiBalance int
|
||||
for _, bitcoinAddress := range p.bitcoinAddresses {
|
||||
addressResponse, err := p.client.GetAddress(bitcoinAddress)
|
||||
addressResponse, err := p.client.getAddress(bitcoinAddress)
|
||||
if err != nil {
|
||||
return balances, ynabAccountIDs, fmt.Errorf("failed to get bitcoin address '%s': %v", bitcoinAddress, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user