Zondax / ledger-astar

Apache License 2.0
6 stars 3 forks source link

Unable to create Enum via index 77, in Ed25519, Sr25519, Ecdsa #22

Closed EV6999 closed 10 months ago

EV6999 commented 10 months ago

Hello, I got the following error when trying to add a signature to extrinsic. This error happens when Astar spec was upgraded to 64.

Could you have a look? Is it related to the Astar app on Ledger?

Thank you.

This is the node info I connected: node: wss://rpc.astar.network, spec-version=64, node-version=5.16.1-79d4568b64b

Here is the code I am using to create extrinsic and add signature.

const extrinsic = REGISTRY.createType(
        "Extrinsic",
        { method: unsigned.method },
        { version: unsigned.version }
      );
const extrinsicToSubmit = extrinsic.addSignature(
        unsigned.address,
        signature,
        unsigned
      );

Error: Unable to create Enum via index 77, in Ed25519, Sr25519, Ecdsa, StackTrace = Error: createType(ExtrinsicSignature):: Unable to create Enum via index 77, in Ed25519, Sr25519, Ecdsa

carlosala commented 10 months ago

It does not seem to be related to the Ledger app itself. Runtime 64 does not affect anything on Ledger's perspective.