Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

evm not compatible with hdwallet-provider #773

Open
louisliu2048 opened this issue Feb 4, 2021 · 2 comments
Open

evm not compatible with hdwallet-provider #773

louisliu2048 opened this issue Feb 4, 2021 · 2 comments

Comments

@louisliu2048
Copy link

System info: [Include Ethermint commit, operating system name, and other relevant details]

current now, the evm module cant not interact with truffle/hdwallet-provider, for evm module only support EIP155 Signature algorithm。

Steps to reproduce:

download nxm project https://github.com/somish/NexusMutual, modify the truffle-config.js, use hdwallet-provider plugin to sign tx:

const HDWalletProvider = require("@truffle/hdwallet-provider");
const privateKeys = "your private keys";

module.exports = {
  networks: {
    development: {
      provider: () => new HDWalletProvider(privateKeys, `http://127.0.0.1:8545`),
      network_id: '*',
      skipDryRun: true
    },
    // development: {
    //   host: '127.0.0.1',
    //   port: 8545,
    //   gas: 8000000,
    //   gasPrice: 0x6000000000000,
    //   network_id: '*',
    //   skipDryRun: true
    // },
  },
  compilers: {
    solc: {
      version: '0.5.7',
      settings: {
        optimizer: {
          enabled: true,
          runs: 200
        }
      }
    }
  },
  plugins: ['solidity-coverage', 'truffle-plugin-verify'],
  api_keys: { etherscan: process.env.ETHERSCAN_API_KEY }
};

Expected behavior: [What you expected to happen]

The deploy process run steps by steps, and final return ok

Actual behavior: [What actually happened]

Fail at the first step:
image

Additional info: [Include gist of relevant config, logs, etc.]

@github-actions
Copy link

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale stale PRs that will be closed if no further action occurs label Mar 22, 2021
@araskachoi
Copy link
Contributor

apologies on the delay in response... What was the private key that was used for the configuration file?

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

No branches or pull requests

2 participants