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

Signing a transaction with Ledger fails if the transaction is "too" big #33

Closed
frol opened this issue Jul 2, 2021 · 2 comments · Fixed by #259
Closed

Signing a transaction with Ledger fails if the transaction is "too" big #33

frol opened this issue Jul 2, 2021 · 2 comments · Fixed by #259
Labels

Comments

@frol
Copy link
Collaborator

frol commented Jul 2, 2021

Certain transactions like those that involve contract deployment or huge blob of arguments in a function call read to an obscure error, which was already reported here near/near-cli#612 and here LedgerHQ/app-near#13

There is no solution yet. Further discussion should happen in the thread mentioned above.

@frol frol added bug Something isn't working help wanted Extra attention is needed labels Jul 2, 2021
@frol
Copy link
Collaborator Author

frol commented Feb 3, 2022

It is an implementation of on-Ledger app (https://github.com/near/app-near), which is limited by the memory constraint of Ledger device (4KiB of RAM). NEAR app on Ledger allocates 650 bytes for the transaction buffer, and so it is a hard limit at the moment unless someone implements some streaming mechanism: near/near-cli#612 (comment)

@frol frol added the blocked label Feb 3, 2022
@frol frol changed the title Signing a transaction with Ledger is fails if the transaction is "too" big Signing a transaction with Ledger fails if the transaction is "too" big Feb 3, 2022
@exalate-issue-sync exalate-issue-sync bot added help_wanted T-dev-tools and removed help wanted Extra attention is needed labels Jun 1, 2022
@0x3bfc
Copy link
Member

0x3bfc commented Jul 4, 2023

Same issue here while using the deploy action for deploying contract where it is signed by ledger.

near contract deploy <MYACCOUNT_ID> use-file /tmp/contract.wasm without-init-call network-config testnet sign-with-ledger --seed-phrase-hd-path 'm/44'\''/397'\''/0'\''/0'\''/1'\'''
Error: 
   0: Error occurred while signing the transaction: APDUExchangeError("Unknown Ledger APDU retcode: 27024")

Location:
   /Users/ahmed/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/near-cli-rs-0.5.1/src/transaction_signature_options/sign_with_ledger/mod.rs:97

The main issue is mainly related to the near-app for ledger (Nano S plus was used).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants