mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
EVMHost: Add tracing features needed for fuzzing.
This commit is contained in:
@@ -91,10 +91,15 @@ public:
|
||||
/// The address of the beneficiary account.
|
||||
address beneficiary;
|
||||
|
||||
/// The balance of the self-destructed account.
|
||||
uint256be balance;
|
||||
|
||||
/// Equal operator.
|
||||
bool operator==(const selfdestuct_record& other) const noexcept
|
||||
{
|
||||
return selfdestructed == other.selfdestructed && beneficiary == other.beneficiary;
|
||||
return selfdestructed == other.selfdestructed &&
|
||||
beneficiary == other.beneficiary &&
|
||||
balance == other.balance;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -265,7 +270,7 @@ public:
|
||||
void selfdestruct(const address& addr, const address& beneficiary) noexcept override
|
||||
{
|
||||
record_account_access(addr);
|
||||
recorded_selfdestructs.push_back({addr, beneficiary});
|
||||
recorded_selfdestructs.push_back({addr, beneficiary, get_balance(addr)});
|
||||
}
|
||||
|
||||
/// Call/create other contract (EVMC host method).
|
||||
|
||||
Reference in New Issue
Block a user