diff options
author | Florian Dold <florian.dold@gmail.com> | 2015-12-16 10:53:29 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2015-12-16 10:55:43 +0100 |
commit | a9f3d077f9e53fe80bb78aca0531fbd2c14aae36 (patch) | |
tree | a639ff289262a43cb6fbcb2c107a9d687323d491 /extension | |
parent | 22246ea15692fd6e6cfde2e3768e000bc782eb36 (diff) | |
download | wallet-core-a9f3d077f9e53fe80bb78aca0531fbd2c14aae36.tar.xz |
types
Diffstat (limited to 'extension')
-rw-r--r-- | extension/background/emscriptif.js | 2 | ||||
-rw-r--r-- | extension/background/emscriptif.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/extension/background/emscriptif.js b/extension/background/emscriptif.js index 26c0c631d..f94b58016 100644 --- a/extension/background/emscriptif.js +++ b/extension/background/emscriptif.js @@ -363,7 +363,7 @@ class SignatureStruct { constructor(x) { this.members = {}; for (let k in x) { - this.set(k[0], k[1]); + this.set(k, x[k]); } } toPurpose(a) { diff --git a/extension/background/emscriptif.ts b/extension/background/emscriptif.ts index bf2f43c9b..150b68741 100644 --- a/extension/background/emscriptif.ts +++ b/extension/background/emscriptif.ts @@ -517,9 +517,9 @@ abstract class SignatureStruct { abstract purpose(): SignaturePurpose; private members: any = {}; - constructor(x: any) { + constructor(x: { [name: string]: any }) { for (let k in x) { - this.set(x, x[k]); + this.set(k, x[k]); } } |