Skip to content
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

Embark demo not working with latest version of Metamask #310

Closed
eschnou opened this issue Oct 24, 2017 · 8 comments
Closed

Embark demo not working with latest version of Metamask #310

eschnou opened this issue Oct 24, 2017 · 8 comments

Comments

@eschnou
Copy link

eschnou commented Oct 24, 2017

Problem: When submitting the transaction (set value) in the embark demo example, metamask returns an 'invalid sender' error. This is due to metamask enforcing EIP 155 for replay protection and geth not being properly configured to support it.
MetaMask/metamask-extension#1444

Solution: the channelId must be added in the config section of the genesis configuration. It should match the networkId (which is 12301 by default).

This change solved this issue for me:

{
    "config": {
      "chainId": 12301,
      "homesteadBlock": 1
    },
   ....
}

Versions:
metamask 3.11.2
geth 1.7.2-stable
embark 2.5.2

@ConnorBP
Copy link

ConnorBP commented Mar 3, 2018

Setting the chainId to 12301 in the genesis conf does not work for me :/
and my blockchain is definitely running with that id...

metamask 4.1.3
geth 1.8.1-stable
Embark 2.6.7

Transactions on metamask fail every time. Maybe i should try mist?

{
    "config": {
      "chainId": 12301,
      "homesteadBlock": 1
    },
    "nonce": "0x0000000000000042",
    "difficulty": "0x0",
    "alloc": {
        "0x3333333333333333333333333333333333333333": {"balance": "15000000000000000000"}
    },
    "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "coinbase": "0x3333333333333333333333333333333333333333",
    "timestamp": "0x00",
    "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "extraData": "0x",
    "gasLimit": "0x4c4b40"
}

@RamiroMoreira
Copy link
Contributor

i have the same issue, and that solution does not work for me neither

@iurimatias
Copy link
Collaborator

@ConnorBP @RamiroMoreira are you still experiencing this issue on embark 3.0 ?

@RamiroMoreira
Copy link
Contributor

@iurimatias yes, i just test it in Embark 3.0.1 and i had the same issue

@iurimatias
Copy link
Collaborator

@RamiroMoreira just to confirm, are you connecting metamask to the embark node?

@RamiroMoreira
Copy link
Contributor

@iurimatias yes, maybe i'm doing something wrong, i'm runing my own dapp, it's not the demo example.

@iurimatias
Copy link
Collaborator

@RamiroMoreira are you getting in a console an error like " Error: No "from" address specified in neither the given options, nor the default options." ?

@iurimatias
Copy link
Collaborator

@eschnou @ConnorBP @RamiroMoreira This should be all fixed in the latest release 3.0.3 (relased just now). note that you might need to reset the account in metamask with "settings->reset account".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants