Skip to content

Commit

Permalink
Slice signature if it twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Borsuk committed Nov 20, 2019
1 parent 7777ba3 commit 162f60e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "echo-web3",
"version": "0.1.4",
"version": "0.1.5",
"description": "The wrapper over the Web3 that helps you to save your DAPP's code with calling to web3 methods by call to ECHO blockchain",
"main": "./dist/index.js",
"types": "./types/index.d.ts",
Expand Down
8 changes: 7 additions & 1 deletion src/providers/bridge-provider/methods/personal-sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ class PersonalSignBridge extends BridgeMethod {
*/
_formatOutput(result) {
const { signature } = result;
return addHexPrefix(signature.toString('hex'));

// TODO rm after release bridge@1.14.0
let stringSignarute = signature.toString('hex');
if (stringSignarute.length === 256){
stringSignarute = stringSignarute.slice(0, 128);
}
return addHexPrefix(stringSignarute);
}

}
Expand Down

0 comments on commit 162f60e

Please sign in to comment.