mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-23 00:18:01 +00:00
2d0a0e2e81
Signed-off-by: xermicus <cyrill@parity.io>
12 lines
214 B
Solidity
12 lines
214 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8;
|
|
|
|
contract Bitwise {
|
|
function opByte(uint i, uint x) public payable returns (uint ret) {
|
|
assembly {
|
|
ret := byte(i, x)
|
|
}
|
|
}
|
|
}
|