Closed johnnyji-dev closed 1 year ago
Hey so to be clear this is not a txwrapper-*
issue. If the unsigned transaction you are constructing ends up working one way but not another means that the fundamental issue comes from the wallet you are using in this case.
Using MPC, is it related with "Ledger Nano Condition" on below picture?
If you are having an issue with the eras and the following photo is correct then yes it is most likely a ledger nano issue. But in any case since txwrapper-*
is working correctly when using the pk
without MPC I can't say we can have much help in resolving this for you as ledger has there own restrictions.
Hi~, I'm on Testing claim-reward "Shibuya" testnet (cf. Astar mainnet).
[[DEV-Environment]] I got a below error message on testing claim-reward on NESTJS env. I made an unsigned Transaction and then offline-signed with "@substrate/txwrapper-polkadot"-lib. Especially, I'm using MPC™ wallets. Without MPC, using pk has no issue.
[[Test Result]] My transaction is composed of multi-transactions for claim-reward(accumulated ERAs).
[some parts of making unsigned transaction]
Test01-success case) if "availEra" on for-loop is below 7(include 7), It succeed to broadcast Transaction. I can get the "actualTxHash" on "[some parts of making unsigned transaction]".
Test02-fail case) if "availEra" on for-loop is over 7(more than 8), It failed to broadcast Transaction. I got the upper err-mesg("... Hash:: 1010: Invalid Transaction: Transaction has a bad signature ...").
After signing a unsigned transaction, I checked the validation of transaction with "signatureVerify-api" on "@polkadot/util-crypto"-lib. I can get the "true" result.
[checking validation of signature]
Question1) How can I debug this case with another way? Or Can I get some advice for resolving it? Question2) Using MPC, is it related with "Ledger Nano Condition" on below picture?