|
|
@ -147,11 +147,11 @@ module.exports = { |
|
|
|
.waitForElementPresent('.instance:nth-of-type(3)') |
|
|
|
.waitForElementPresent('.instance:nth-of-type(3)') |
|
|
|
.click('.instance:nth-of-type(3) > div > button') |
|
|
|
.click('.instance:nth-of-type(3) > div > button') |
|
|
|
.clickFunction('g - transact (not payable)', { types: '', values: '' }) |
|
|
|
.clickFunction('g - transact (not payable)', { types: '', values: '' }) |
|
|
|
.journalLastChildIncludes(`Error provided by the contract:
|
|
|
|
.journalLastChildIncludes('Error provided by the contract:') |
|
|
|
E |
|
|
|
.journalLastChildIncludes('CustomError') |
|
|
|
Parameters: |
|
|
|
.journalLastChildIncludes('Parameters:') |
|
|
|
2 |
|
|
|
.journalLastChildIncludes('2, 3, error_string_2') |
|
|
|
Debug the transaction to get more information.`)
|
|
|
|
.journalLastChildIncludes('Debug the transaction to get more information.') |
|
|
|
.end() |
|
|
|
.end() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -241,13 +241,13 @@ contract C { |
|
|
|
|
|
|
|
|
|
|
|
pragma solidity ^0.8.4; |
|
|
|
pragma solidity ^0.8.4; |
|
|
|
|
|
|
|
|
|
|
|
error E(uint a); |
|
|
|
error CustomError(uint a, uint b, uint c); |
|
|
|
contract C { |
|
|
|
contract C { |
|
|
|
function f() public pure { |
|
|
|
function f() public pure { |
|
|
|
revert E(2); |
|
|
|
revert CustomError(2, 3, "error_string"); |
|
|
|
} |
|
|
|
} |
|
|
|
function g() public { |
|
|
|
function g() public { |
|
|
|
revert E(2); |
|
|
|
revert CustomError(2, 3, "error_string_2"); |
|
|
|
}
|
|
|
|
}
|
|
|
|
}` |
|
|
|
}` |
|
|
|
} |
|
|
|
} |
|
|
|