This repository was archived by the owner on Jan 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 196
This repository was archived by the owner on Jan 24, 2022. It is now read-only.
openzeppelin-cli uses the wrong account #1579
Copy link
Copy link
Open
Description
I noticed an odd behavior while using openzeppelin-cli where it uses the account in the list that @truffle/hdwallet-provider provides no matter what account was actually selected.
I'm using @openzeppelin/cli version 2.8.2 and @truffle/hdwallet-provider version 1.0.42
Here is my networks.js:
const { infuraId, alchemyId, mnemonic } = require('./secrets.json');
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
networks: {
development: {
protocol: 'http',
host: 'localhost',
port: 8545,
gas: 5000000,
gasPrice: 5e9,
networkId: '*',
},
goerli_infura: {
provider: () => new HDWalletProvider(
mnemonic, `https://goerli.infura.io/v3/${infuraId}`
),
networkId: 5,
gasPrice: 2e9
},
rinkeby_infura: {
provider: () => new HDWalletProvider(
mnemonic, `https://rinkeby.infura.io/v3/${infuraId}`
),
networkId: 4,
gasPrice: 10e9
},
rinkeby_alchemy: {
provider: () => new HDWalletProvider(
mnemonic, `https://eth-rinkeby.alchemyapi.io/v2/${alchemyId}`
),
networkId: 4,
gasPrice: 10e9
},
rinkeby_local: {
provider: () => new HDWalletProvider(
mnemonic, `http://172.27.96.1:8545`
),
networkId: 4,
gasPrice: 10e9
}
},
};Here is how I deploy a contract
This is what the node says:
INFO [08-27|15:00:14.450] Submitted contract creation fullhash=0x############################################################0fa7 contract=0x########################################
And this is what etherscan says:

I don't really know if the issue is with openzeppelin-cli or with @truffle/hdwallet-provider
Metadata
Metadata
Assignees
Labels
No labels