From 4a8386f7d1174cdacaf8f092c0f8e3c3ed4ae28d Mon Sep 17 00:00:00 2001 From: Souradeep Das Date: Thu, 25 Mar 2021 16:34:55 +0530 Subject: [PATCH] fix: obtain sig from correct method (#131) --- src/services/networkService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/networkService.js b/src/services/networkService.js index 5fab7eb..33b4aa6 100644 --- a/src/services/networkService.js +++ b/src/services/networkService.js @@ -489,7 +489,7 @@ class NetworkService { JSONBigNumber.stringify(typedData) ] ); - return signature; + return signature.result; } catch (error) { if (!isExpectedSignTypedV3Error(error.message)) { // not an expected error @@ -556,7 +556,7 @@ class NetworkService { ? await this.ledgerSign(typedData) : await this.signTypedData(typedData); - const signatures = new Array(txBody.inputs.length).fill(signature.result); + const signatures = new Array(txBody.inputs.length).fill(signature); const signedTxn = this.childChain.buildSignedTransaction(typedData, signatures); const submittedTransaction = await this.childChain.submitTransaction(signedTxn); return { @@ -698,7 +698,7 @@ class NetworkService { ? await this.ledgerSign(typedData) : await this.signTypedData(typedData); - const signatures = new Array(txBody.inputs.length).fill(signature.result); + const signatures = new Array(txBody.inputs.length).fill(signature); const signedTxn = this.childChain.buildSignedTransaction(typedData, signatures); const submittedTransaction = await this.childChain.submitTransaction(signedTxn); return {