Fixed Etherscan string change and enabled all tests.
This commit is contained in:
parent
bde861436e
commit
a1f8d188a7
@ -149,7 +149,7 @@ function checkError(method: string, error: any, transaction: any): any {
|
||||
});
|
||||
}
|
||||
|
||||
if (message.match(/execution failed due to an exception/)) {
|
||||
if (message.match(/execution failed due to an exception|execution reverted/)) {
|
||||
logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
|
||||
error, method, transaction
|
||||
});
|
||||
|
@ -763,18 +763,6 @@ Object.keys(blockchainData).forEach((network) => {
|
||||
|
||||
return receipt;
|
||||
}, test, (provider: string, network: string, test: TestDescription) => {
|
||||
|
||||
// @TODO: Remove once Etherscan fixes whatever makes this unhappy
|
||||
if (provider === "EtherscanProvider") {
|
||||
if (hash === "0x55c477790b105e69e98afadf0505cbda606414b0187356137132bf24945016ce") {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (hash === "0xf724f1d6813f13fb523c5f6af6261d06d41138dd094fff723e09fb0f893f03e6") {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
@ -786,9 +774,7 @@ Object.keys(blockchainData).forEach((network) => {
|
||||
name: `throws correct ${ code } error`,
|
||||
networks: [ "ropsten" ],
|
||||
checkSkip: (provider: string, network: string, test: TestDescription) => {
|
||||
// @TODO: Remove once Etherscan supports EIP-1559
|
||||
return (code === ethers.utils.Logger.errors.UNPREDICTABLE_GAS_LIMIT && provider === "EtherscanProvider");
|
||||
//return false;
|
||||
return false;
|
||||
},
|
||||
execute: async (provider: ethers.providers.Provider) => {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user