MyCrypto/common/libs/wallet/base.js

17 lines
337 B
JavaScript
Raw Normal View History

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