mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-20 18:56:17 +00:00
This PR fixes a small oversight from #431: Set the debug config of the revive-runner `Runtime` such that we get the PVM logs back. Since the revive runner runtime is mainly meant for debugging, I further decided to enable unlimited contract sizes and disable [EIP 3607](https://eips.ethereum.org/EIPS/eip-3607) too. --------- Signed-off-by: xermicus <cyrill@parity.io>
34 lines
734 B
Solidity
34 lines
734 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8;
|
|
|
|
/* runner.json
|
|
{
|
|
"differential": false,
|
|
"actions": [
|
|
{
|
|
"Instantiate": {
|
|
"code": {
|
|
"Solidity": {
|
|
"contract": "BlockHash"
|
|
}
|
|
},
|
|
"data": "e8ec043305d4cfbb51936ae25b50e0a4352d8eaab03d0f66d8d543e65a9a9668"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
*/
|
|
|
|
contract BlockHash {
|
|
constructor(bytes32 expected) payable {
|
|
assert(blockhash(0) == expected);
|
|
assert(blockhash(1) == 0);
|
|
assert(
|
|
blockhash(
|
|
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
|
) == 0
|
|
);
|
|
}
|
|
}
|