polkadot-js / api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
Apache License 2.0
1.07k stars 350 forks source link

crowdloan.contribute Struct: failed on signature: Option<{"_enum":{"Ed25519":"[u8;64]","Sr25519":"[u8;64]","Ecdsa":"[u8;65]"}}>:: Unable to create Enum via index 159, in Ed25519, Sr25519, Ecdsa #4101

Closed ThreeAndTwo closed 2 years ago

ThreeAndTwo commented 2 years ago

How can sign correctly? image

jacogr commented 2 years ago

What does this.account.sign() do? Cowdloan signatures are MultiSignature, so 1 byte longer than a normal signature with the first byte indicating the account type for the enum.

ThreeAndTwo commented 2 years ago

thx

polkadot-js-bot commented 2 years ago

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.