Scan consistency updates (#194)

* Scan consistency updates

* Default auto height/width

* Rework qrcode export

* Fix address scanning (as per new format)

* Update tests

* Bump common

* Pass through genesisHash

* addExternal via address
This commit is contained in:
Jaco Greeff
2019-09-01 09:44:27 +02:00
committed by GitHub
parent 4f3aae320c
commit 556d07b368
19 changed files with 100 additions and 62 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ export class Keyring extends Base implements KeyringStruct {
account: (): AddressSubject => this.accounts
};
public addExternal (publicKey: Uint8Array, meta: KeyringPair$Meta = {}): CreateResult {
const pair = this.keyring.addFromAddress(publicKey, { ...meta, isExternal: true }, null);
public addExternal (address: string | Uint8Array, meta: KeyringPair$Meta = {}): CreateResult {
const pair = this.keyring.addFromAddress(address, { ...meta, isExternal: true }, null);
return {
json: this.saveAccount(pair),