Ganache v7 is out! Read more about it here: https://trufflesuite.com/blog/introducing-ganache-7/
haltman-at on sourcijuly
Add Sourcify networks for July … (compare)
lsqproduction on v5.5.20
console.log(decimals);
and console.log(web3.utils.toBN(_decimals));
which results in the exact same string: BN { negative: 0, words: [ 18, <1 empty item> ], length: 1, red: null }
and BN { negative: 0, words: [ 18, <1 empty item> ], length: 1, red: null }
. However when I add the following check: decimals.should.be.bignumber.equal(web3.utils.toBN(_decimals));
the following exception is thrown: AssertionError: expected <BN: 12> to be an instance of string, number or BigNumber
. Can anyone explain what I'm missing here?
I'm trying to deploy to polygon with a config that is used to work. I'm already willing to pay a high fee, but nothing works.
matic: {
provider: () => new HDWalletProvider({
mnemonic: {
phrase: process.env.MNEMONIC
},
providerOrUrl: 'https://rpc-mainnet.maticvigil.com/v1/<ny',
}),
network_id: 137,
confirmations: 2,
timeoutBlocks: 2000,
gas: 10000000,
gasPrice: 150000000000,
networkCheckTimeout: 10000000,
},
Is there something wrong here?
Hello all,
I am trying to deploy my contract to Polygon mainnet. But getting this error
Saving migration to chain.Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
code: -32603,
message: 'ESOCKETTIMEDOUT',
data: { originalError: { code: 'ESOCKETTIMEDOUT', connect: false } },
stack: 'Error: ESOCKETTIMEDOUT\n'
I can see the transaction in polygonscan, but the migration is not getting saved.