polkadot-js / extension

Simple browser extension for managing Polkadot and Substrate network accounts in a browser. Allows the signing of extrinsics using these accounts. Also provides a simple interface for compliant extensions for dapps.
Apache License 2.0
971 stars 417 forks source link

Unable to Sign Transactions from Injected Ethereum-Style Accounts #907

Closed themacexpert closed 1 year ago

themacexpert commented 2 years ago

I am unable to successfully sign any transactions in Polkadot Js Apps using an injected Ethereum-style account from the extension.

Steps to Re-Create:

Looking at the console I see the following messages: Screen Shot 2021-12-06 at 2 54 46 PM

This issue has been replicated by several individuals with the same results.

jacogr commented 2 years ago

Would need to look at the Moonbeam transaction signature type, e.g. MultiSignature or AnySignature, my guess is that is where it would break down. (But would then apply to all, not really "only extension accounts")

So generally the above is either -

There are tricky. If it only happens on extension accounts, it would mean that the extension does something weird. (Well, could also be in the apps UI signer where it uses the signature from the extension)

TL;DR Only ramblings above... this is not something that is clear in what may be the issue.

joelamouche commented 2 years ago

@jacogr Any news on this?

signing payload incorrect

I added a test to the extension repo to make sure that is not the problem

signature is in the wrong format

How do we test that? Unfortunately this is hidden in the .sign function

joelamouche commented 2 years ago

@jacogr Any news on this? This is still a problem

joelamouche commented 2 years ago

I havent been able to find the solution to this but it is pretty important to allow new users to join in. I would love to get on a pair programming session

hoale58-vl commented 2 years ago

Hello guys, I'm encountering the same problem with Ethereum-style chains. Those accounts I import using PolkadotJS-app UI work fine, except for this extension. It's very weird that last week I was still doing extrinsic calls, now all submitted extrinsics are returning bad signature errors. I installed both versions from the chrome store and the latest version from this repository.

hoale58-vl commented 2 years ago

I have manually updated the ExtrinsicSignature to EthereumSignature and work fine. Looks like the extensions cannot update the metadata from Ethereum chains

polkadot-js-bot commented 1 year 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.