-
Notifications
You must be signed in to change notification settings - Fork 37
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
Can't interop with subkey #352
Comments
As already commented on Stackoverflow by me, as the first comment on your post - the issue with your gist is that you are sending immortal transactions and the blockHash you specify is not the genesisHash. You have -
instead of
For the echo above, echo adds a newline to the input which is not in your original message, so it is certainly expected that your command will yield invalid results. For echo you need the
|
Wow, that's a real gotcha with the echo, thank you for looking into this @jacogr. However, I did try with block hash = genesis and still getting the same error. The era is set to
I did have success with submitting the transaction with a mortal era taken from your code but I would still like to understand why the immortal era is not accepted. |
From a casual glance -
Both as per the Since these are in the payload and the runtime re-constructs this payload with the on-chain information, they need to be 100% spot-on and filled correctly. Having both the same and encoded as I would suggest checking your signing payload, it can basically be anything - if one field is incorrect, the signature will fail. (And the tx pool cannot say which it is) EDIT:
Also looks suspect, |
Aha, that's probably my downfall. I thought the runtime version has to be fetched from the block hash, which in this case was the generis, hence 1. But what you said makes more sense. Will check that again. Address type is ok - just printed as an integer instead of hex, which is why you see it as single digit. |
Perfect, thought the address type was just a typo :) So spec/tx is applicable to when the tx executes. Basically this means that when either changes, the transaction would become invalid. (In you send a tx just before an upgrade, on the block after the upgrade it cannot be included anymore, it will be rejected) |
@jacogr, if you're ever in Greece, I'm buying you a beer! My email is my github username @ gmail :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
Guys, I'm driving myself crazy and I hope you can help me out.
If I sign a message with
@polkadot
, I can't then verify it with subkey, how does that work?From subkey:
For context
I got here because I am getting an error 1010 when submitting a balance transfer to Westend. I then found these two but I didn't manage to get anywhere either. This code still fails:
The text was updated successfully, but these errors were encountered: