mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 02:07:55 +00:00
e568a924ae
Support for `polkadot-sdk` release `unstable2507`. This release will be deployed to Kusama and is supposed the first one on Polkadot. --------- Signed-off-by: xermicus <cyrill@parity.io> Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
32 lines
553 B
Solidity
32 lines
553 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8;
|
|
|
|
/* runner.json
|
|
{
|
|
"differential": false,
|
|
"actions": [
|
|
{
|
|
"Instantiate": {
|
|
"code": {
|
|
"Solidity": {
|
|
"contract": "GasLeft"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"VerifyCall": {
|
|
"success": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
*/
|
|
|
|
contract GasLeft {
|
|
constructor() payable {
|
|
assert(gasleft() > 0 && gasleft() < 0xffffffffffffffff);
|
|
}
|
|
}
|