mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 19:44:21 +00:00
5d3e461301
* Check in. * Add read only wallet and new types for that. Convert some components to require full wallet. * Fix readonly property, fix uncaught throw. * Disable address only on some tabs. * Use FullWalletOnly render callback to handle signing. * Work around uncertain wallet type. * Fix function args. * Undo bug fix that should be done in another branch. * Disable button while address is bad. * Remove log. * Convert anonymous functions to class functions.
15 lines
303 B
TypeScript
15 lines
303 B
TypeScript
import { IReadOnlyWallet } from '../IWallet';
|
|
|
|
export default class AddressOnlyWallet implements IReadOnlyWallet {
|
|
public address = '';
|
|
public readonly isReadOnly = true;
|
|
|
|
constructor(address: string) {
|
|
this.address = address;
|
|
}
|
|
|
|
public getAddressString() {
|
|
return this.address;
|
|
}
|
|
}
|