From 7bef4631164172af5053c5a44fa40dcb79075f2d Mon Sep 17 00:00:00 2001 From: Franck PETRIZ Date: Wed, 24 May 2017 15:11:58 +0200 Subject: [PATCH] Update BTCBlockchainInfo.m Since base58String is marked as DEPRECATED_ATTRIBUTE valueForKey should be using to -string --- CoreBitcoin/BTCBlockchainInfo.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreBitcoin/BTCBlockchainInfo.m b/CoreBitcoin/BTCBlockchainInfo.m index bb7c7fc4..e4ea652c 100644 --- a/CoreBitcoin/BTCBlockchainInfo.m +++ b/CoreBitcoin/BTCBlockchainInfo.m @@ -9,7 +9,7 @@ @implementation BTCBlockchainInfo - (NSMutableURLRequest*) requestForUnspentOutputsWithAddresses:(NSArray*)addresses { if (addresses.count == 0) return nil; - NSString* urlstring = [NSString stringWithFormat:@"https://blockchain.info/unspent?active=%@", [[addresses valueForKey:@"base58String"] componentsJoinedByString:@"%7C"]]; + NSString* urlstring = [NSString stringWithFormat:@"https://blockchain.info/unspent?active=%@", [[addresses valueForKey:@"string"] componentsJoinedByString:@"%7C"]]; NSMutableURLRequest* request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:urlstring]]; request.HTTPMethod = @"GET"; return request;