mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-12 03:54:13 +00:00
9b2156ed4f
* Generating transaction ,placing into read only textareas. * Fix async wallet getAddress cases. * Chain id from network * remove leftover console log * Check balance before generating transaction. * Translate error msgs, check for invalid address. * Errors for gas limit and gas price issues.
22 lines
508 B
JavaScript
22 lines
508 B
JavaScript
// @flow
|
|
import { stripHex } from 'libs/values';
|
|
import type { RawTransaction } from 'libs/transaction';
|
|
|
|
export default class BaseWallet {
|
|
getAddress(): Promise<string> {
|
|
return Promise.reject('Implement me');
|
|
}
|
|
|
|
getNakedAddress(): Promise<string> {
|
|
return new Promise(resolve => {
|
|
this.getAddress().then(address => {
|
|
resolve(stripHex(address));
|
|
});
|
|
});
|
|
}
|
|
|
|
signRawTransaction(_tx: RawTransaction): Promise<string> {
|
|
return Promise.reject('Implement me');
|
|
}
|
|
}
|