Skip to content

Commit

Permalink
fix: obtain sig from correct method (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
souradeep-das authored Mar 25, 2021
1 parent d572b13 commit 4a8386f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/networkService.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class NetworkService {
JSONBigNumber.stringify(typedData)
]
);
return signature;
return signature.result;
} catch (error) {
if (!isExpectedSignTypedV3Error(error.message)) {
// not an expected error
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 4a8386f

Please sign in to comment.