mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
610 B
24 lines
610 B
|
|
@payable
|
|
@external
|
|
def test_builtins():
|
|
a: address = block.coinbase
|
|
b: uint256 = block.difficulty
|
|
c: uint256 = block.prevrandao
|
|
d: uint256 = block.number
|
|
e: bytes32 = block.prevhash
|
|
f: uint256 = block.timestamp
|
|
h: bytes32 = convert(chain.id, bytes32)
|
|
i: Bytes[32] = slice(msg.data, 0, 32)
|
|
j: uint256 = msg.gas
|
|
k: address = msg.sender
|
|
l: uint256 = msg.value
|
|
m: address = tx.origin
|
|
n: uint256 = tx.gasprice
|
|
x: uint256 = self.balance
|
|
|
|
@external
|
|
def c(x: uint256):
|
|
user_shares: DynArray[uint256, 10] = []
|
|
user_shares.append(1)
|
|
user_shares.pop()
|
|
|