Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add devices #2824

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
Fix transport after adding 0x to hex responses
  • Loading branch information
FrederikBolding committed Nov 11, 2024
commit a891ca367c4f5051e3a2672a4bd274dd79b9ed41
2 changes: 1 addition & 1 deletion packages/examples/packages/ledger/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "LNfNpm9ZciGFP0AlUj/UkFR50cJnJuYtXXE2LM/5HJI=",
"shasum": "PaohqUxJniFTXeGB1eD3l3vIJHRBBPKAkmmlpk/K7H0=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
2 changes: 1 addition & 1 deletion packages/examples/packages/ledger/src/transport.ts
Original file line number Diff line number Diff line change
@@ -226,7 +226,7 @@ export default class TransportSnapsHID extends Transport {
},
});

const buffer = Buffer.from(bytes, 'hex');
const buffer = Buffer.from(bytes.slice(2), 'hex');
accumulator = framing.reduceResponse(accumulator, buffer);
}