Skip to content

Commit

Permalink
fix: typed data signature version
Browse files Browse the repository at this point in the history
  • Loading branch information
iGroza committed Feb 20, 2024
1 parent 1bac486 commit 5396da9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@haqq/provider-ledger-react-native",
"version": "0.0.26",
"version": "0.0.27",
"description": "Provider for react-native ledger",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -34,7 +34,7 @@
"react-native-ble-plx": "*"
},
"devDependencies": {
"@haqq/provider-base": "0.0.20",
"@haqq/provider-base": "0.0.22",
"@ledgerhq/types-devices": "^6.23.0",
"@types/jest": "^29.4.0",
"@types/node": "^18.14.1",
Expand Down
3 changes: 2 additions & 1 deletion src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Provider,
ProviderInterface,
TypedData,
calcTypedDataSignatureV,
} from '@haqq/provider-base';
import AppEth, {ledgerService} from '@ledgerhq/hw-app-eth';
import TransportBLE from '@ledgerhq/react-native-hw-transport-ble';
Expand Down Expand Up @@ -201,7 +202,7 @@ export class ProviderLedgerReactNative

run()
.then(result => {
o.next(result);
o.next(calcTypedDataSignatureV(result));
o.complete();
this.emit('signTypedData', true);
})
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1184,10 +1184,10 @@
dependencies:
"@hapi/hoek" "^9.0.0"

"@haqq/[email protected].20":
version "0.0.20"
resolved "https://registry.yarnpkg.com/@haqq/provider-base/-/provider-base-0.0.20.tgz#34d3d6c8a564da54f60c5586da1ef2efb4bec713"
integrity sha512-UUbuLzZN/GH5K50NY8DDHNUaJ3u0DEVnNq/8JGmloTxlMGkYP+nHikXAKA6jXDapToNmFQEjjqtUCkHA17ri3w==
"@haqq/[email protected].22":
version "0.0.22"
resolved "https://registry.yarnpkg.com/@haqq/provider-base/-/provider-base-0.0.22.tgz#04ec83a52b7fbbf85e28914950cd484498937664"
integrity sha512-RjHhmNroC8kV29u2yjuTpgH0Cy0z425exzcMCXYXsV2z+NHxPptNA2W/hzXejMh6HV03BqnGEfWGBu4cCorniQ==
dependencies:
bech32-converting "^1.0.9"
ethers "^5.7.2"
Expand Down

0 comments on commit 5396da9

Please sign in to comment.