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

Error using mnemonic for L2 wallet generation #136

Closed
MFranceschi6 opened this issue May 9, 2020 · 0 comments · Fixed by #195
Closed

Error using mnemonic for L2 wallet generation #136

MFranceschi6 opened this issue May 9, 2020 · 0 comments · Fixed by #195

Comments

@MFranceschi6
Copy link

Describe the bug
Rollup-fullnode fails to deploy the execution manager using mnemonic with error:

(node:34) UnhandledPromiseRejectionWarning: Error: missing provider
at Wallet.sendTransaction (/mnt/full-node/node_modules/ethers/wallet.js:107:19)
at ContractFactory.deploy (/mnt/full-node/node_modules/ethers/contract.js:683:28)
at Object.deployContract (/mnt/full-node/packages/rollup-full-node/src/app/util/utils.ts:120:34)
at deployExecutionManager (/mnt/full-node/packages/rollup-full-node/src/app/util/l2-node.ts:203:44)
at getExecutionManagerContract (/mnt/full-node/packages/rollup-full-node/src/app/util/l2-node.ts:183:30)
at processTicksAndRejections (internal/process/task_queues.js:86:5)

Steps to reproduce
Steps to reproduce the behavior:

  1. yarn build
  2. add L2_WALLET_MNEMONIC env variable to the rollup-full-node service in the docker-compose.yml
  3. docker-compose up

Expected behavior
Everything starts up as exptected

Additional context
I've actually found the bug in the code:
packages/rollup-full-node/src/app/util/l2-node.ts

    ...
    else if (!!Environment.l2WalletMnemonic()) {
      wallet = Wallet.fromMnemonic(Environment.l2WalletMnemonic())
      wallet.connect(provider)
      log.info(`Initialized wallet from mnemonic. Address: ${wallet.address}`)
    }
    ...

at line 111 wallet.connect(provider) should be wallet = wallet.connect(provider)

snario pushed a commit that referenced this issue Apr 14, 2021
protolambda pushed a commit to protolambda/optimism that referenced this issue May 1, 2022
OptimismBot pushed a commit that referenced this issue Jan 16, 2025
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

Successfully merging a pull request may close this issue.

2 participants