Update docs

This commit is contained in:
github-actions
2023-05-09 19:56:30 +00:00
parent 47e38c7bda
commit 6ae39c4dc1
579 changed files with 30453 additions and 21485 deletions

View File

@ -3,10 +3,10 @@ const { config } = require('hardhat');
const optimizationsEnabled = config.solidity.compilers.some(c => c.settings.optimizer.enabled);
/** Revert handler that supports custom errors. */
async function expectRevertCustomError (promise, reason) {
async function expectRevertCustomError(promise, reason) {
try {
await promise;
expect.fail('Expected promise to throw but it didn\'t');
expect.fail("Expected promise to throw but it didn't");
} catch (revert) {
if (reason) {
if (optimizationsEnabled) {
@ -17,7 +17,7 @@ async function expectRevertCustomError (promise, reason) {
}
}
}
};
}
module.exports = {
expectRevertCustomError,