Skip to content

Commit

Permalink
Merge pull request #34 from leapwallet/main
Browse files Browse the repository at this point in the history
Sign Direct Fix
  • Loading branch information
leapsamvel committed Aug 27, 2023
2 parents 80925c0 + 5c95264 commit 80d8327
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/cosmos-snap-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leapwallet/cosmos-snap-provider",
"version": "0.1.12-beta.1",
"version": "0.1.13",
"repository": {
"url": "[email protected]:leapwallet/cosmos-metamask-snap.git"
},
Expand Down
14 changes: 3 additions & 11 deletions packages/cosmos-snap-provider/src/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,11 @@ export const requestSignature = async (
});

const { accountNumber } = signDoc;
if (
!accountNumber ||
!accountNumber.low ||
!accountNumber.unsigned ||
!accountNumber.high
) {
throw new Error('Invalid account Number, It should be a long format');
}

const modifiedAccountNumber = new Long(
accountNumber.low,
accountNumber.high,
accountNumber.unsigned,
accountNumber?.low || 0,
accountNumber?.high,
accountNumber?.unsigned,
);

const modifiedSignature = {
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leapwallet/metamask-cosmos-snap",
"version": "0.1.12-beta.1",
"version": "0.1.13",
"description": "Leapwallet cosmos snap for metamask",
"repository": {
"type": "git",
Expand Down

0 comments on commit 80d8327

Please sign in to comment.