mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 19:38:01 +00:00
10c7045e15
Signed-off-by: xermicus <cyrill@parity.io>
18 lines
342 B
Solidity
18 lines
342 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8;
|
|
|
|
contract ExtCode {
|
|
function ExtCodeSize(address who) public view returns (uint ret) {
|
|
assembly {
|
|
ret := extcodesize(who)
|
|
}
|
|
}
|
|
|
|
function CodeSize() public pure returns (uint ret) {
|
|
assembly {
|
|
ret := codesize()
|
|
}
|
|
}
|
|
}
|