Skip to content

Commit

Permalink
fix: fix account safe return
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Sep 26, 2024
1 parent 01a3182 commit b6c4f6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"iso-base": "^4.0.0",
"iso-filecoin": "^4.1.0",
"merge-options": "^3.0.4",
"viem": "^2.21.14",
"viem": "^2.21.15",
"zod": "^3.22.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/filecoin-project/filsnap.git"
},
"source": {
"shasum": "Sfp8JZTgJ26Ypg2PVwey/XUDbuiJfq4jWBaxyMjN40s=",
"shasum": "qIBbaoY+p0F6exYklgNwd+GndBsXA5e5IKhUHk/5CxM=",
"location": {
"npm": {
"filePath": "dist/snap.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/snap/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ export async function getAccountSafe(

const address = account.address
const pubKey = account.pubKey
const path = account.path

// @ts-expect-error - deref account
account = null

return { address, pubKey, accountNumber, path: account.path }
return { address, pubKey, accountNumber, path }
}

0 comments on commit b6c4f6a

Please sign in to comment.