mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #9864 from ethereum/makeIsoltestWorkWithOtherErrors
Only expect more failure data params if they are there.
This commit is contained in:
commit
c1bb1eb070
@ -319,8 +319,11 @@ solidity::frontend::test::ParameterList ContractABIUtils::failureParameters(byte
|
|||||||
ParameterList parameters;
|
ParameterList parameters;
|
||||||
|
|
||||||
parameters.push_back(Parameter{bytes(), "", ABIType{ABIType::HexString, ABIType::AlignNone, 4}, FormatInfo{}});
|
parameters.push_back(Parameter{bytes(), "", ABIType{ABIType::HexString, ABIType::AlignNone, 4}, FormatInfo{}});
|
||||||
|
if (_bytes.size() > 4)
|
||||||
|
{
|
||||||
parameters.push_back(Parameter{bytes(), "", ABIType{ABIType::Hex}, FormatInfo{}});
|
parameters.push_back(Parameter{bytes(), "", ABIType{ABIType::Hex}, FormatInfo{}});
|
||||||
parameters.push_back(Parameter{bytes(), "", ABIType{ABIType::UnsignedDec}, FormatInfo{}});
|
parameters.push_back(Parameter{bytes(), "", ABIType{ABIType::UnsignedDec}, FormatInfo{}});
|
||||||
|
}
|
||||||
|
|
||||||
/// If _bytes contains at least a 1 byte message (function selector + tail pointer + message length + message)
|
/// If _bytes contains at least a 1 byte message (function selector + tail pointer + message length + message)
|
||||||
/// append an additional string parameter to represent that message.
|
/// append an additional string parameter to represent that message.
|
||||||
|
Loading…
Reference in New Issue
Block a user