2017-06-29 23:03:11 +00:00
|
|
|
// @flow
|
2017-08-08 03:45:08 +00:00
|
|
|
import { stripHex } from 'libs/values';
|
2017-06-29 23:03:11 +00:00
|
|
|
|
|
|
|
export default class BaseWallet {
|
2017-08-08 03:25:23 +00:00
|
|
|
getAddress(): Promise<any> {
|
|
|
|
return Promise.reject('Implement me');
|
2017-07-04 03:21:19 +00:00
|
|
|
}
|
2017-07-13 21:02:39 +00:00
|
|
|
|
2017-08-08 03:25:23 +00:00
|
|
|
getNakedAddress(): Promise<any> {
|
|
|
|
return new Promise(resolve => {
|
2017-08-09 12:01:34 +00:00
|
|
|
this.getAddress().then(address => {
|
2017-08-08 03:45:08 +00:00
|
|
|
resolve(stripHex(address));
|
2017-08-08 03:25:23 +00:00
|
|
|
});
|
|
|
|
});
|
2017-07-13 21:02:39 +00:00
|
|
|
}
|
2017-06-29 23:03:11 +00:00
|
|
|
}
|