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.
27 lines
535 B
27 lines
535 B
10 months ago
|
contract A {
|
||
|
|
||
|
modifier NonReentrant {
|
||
|
assembly {
|
||
|
if tload(0) { revert(0, 0) }
|
||
|
tstore(0, 1)
|
||
|
}
|
||
|
_;
|
||
|
assembly {
|
||
|
tstore(0, 0)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function a() NonReentrant public {
|
||
|
bytes32 _blobhash = blobhash(2);
|
||
|
uint _blobbasefee = block.blobbasefee;
|
||
|
|
||
|
assembly {
|
||
|
let __blobbasefee := blobbasefee()
|
||
|
let _basefee := basefee()
|
||
|
let __blobhash := blobhash(3)
|
||
|
mcopy(0, 0x40, 0x20)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|