Skip to content

Commit

Permalink
fix: web3 signature
Browse files Browse the repository at this point in the history
  • Loading branch information
souradeep-das committed Mar 22, 2021
1 parent 46ce726 commit 17b053d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/networkService.js
Original file line number Diff line number Diff line change
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);
const signatures = new Array(txBody.inputs.length).fill(signature.result);
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);
const signatures = new Array(txBody.inputs.length).fill(signature.result);
const signedTxn = this.childChain.buildSignedTransaction(typedData, signatures);
const submittedTransaction = await this.childChain.submitTransaction(signedTxn);
return {
Expand Down

0 comments on commit 17b053d

Please sign in to comment.