File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
BitStore/Controller/Settings Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,12 @@ - (void)stopScan {
6060 [_scanViewController removeFromParentViewController ];
6161}
6262
63+ #pragma mark - ScanDelegate
6364- (void )scannedAddress : (NSString *)address amount : (NSString *)amount {
65+ if ([address hasPrefix: @" BitStore:" ]) {
66+ address = [address substringFromIndex: 9 ];
67+ }
68+
6469 BTCPrivateKeyAddress* addr = [BTCPrivateKeyAddress addressWithBase58String: address];
6570 [self stopScan ];
6671
@@ -152,6 +157,7 @@ - (void)doTransaction:(BTCKey *)key {
152157 }
153158}
154159
160+ // TODO refactor this, sending should be done somewhere central
155161- (BTCTransaction *)transactionSpendingFromPrivateKey : (NSData *)privateKey
156162 to : (BTCPublicKeyAddress *)destinationAddress
157163 error : (NSError **)errorOut {
You can’t perform that action at this time.
0 commit comments