I am trying to deploy contract to polygon mumbai testnet. It works with the first wallet address, but when i use a different wallet address it doesn't work. I am using the same alchemy rpc url
truffle migrate --reset --network first_owner //works
truffle migrate --reset --network different_owner //doesn't work
Second one is compiling fine, but no transaction
//UPDATE
Truffle Config file
networks: {
matic_test: {
provider: () => new HDWalletProvider({
mnemonic: {
phrase: process.env.MEMONIC
},
providerOrUrl: process.env.ALCHEMY_API_POLYGON_TEST
}),
network_id: 80001,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
gas: 6000000,
gasPrice: 10000000000,
from : "WORKING_ADDRESS"
},
matic_test_staging: {
provider: () => new HDWalletProvider({
mnemonic: {
phrase: process.env.MEMONIC_STAGING
},
providerOrUrl: process.env.ALCHEMY_API_POLYGON_TEST
}),
network_id: 80001,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
gas: 6000000,
gasPrice: 10000000000,
from : "DIFFERENT_ADDRESS"
},
}
Second one is only compiling but not deploying Any idea?
truffle-config.js
not the address of the ownertruffle migrate --reset --network matic_test_staging
try this do you have enough ETH / MATIC to deploy / run a transaction?