mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
30 lines
841 B
Solidity
30 lines
841 B
Solidity
|
contract Test {
|
||
|
bytes x;
|
||
|
function set(bytes memory _a) public { x = _a; }
|
||
|
}
|
||
|
// ----
|
||
|
// set(bytes): 0x20, 3, "abc"
|
||
|
// storage: nonempty
|
||
|
// set(bytes): 0x20, 0
|
||
|
// storage: empty
|
||
|
// set(bytes): 0x20, 31, "1234567890123456789012345678901"
|
||
|
// storage: nonempty
|
||
|
// set(bytes): 0x20, 36, "12345678901234567890123456789012", "XXXX"
|
||
|
// storage: nonempty
|
||
|
// set(bytes): 0x20, 3, "abc"
|
||
|
// storage: nonempty
|
||
|
// set(bytes): 0x20, 0
|
||
|
// storage: empty
|
||
|
// set(bytes): 0x20, 3, "abc"
|
||
|
// storage: nonempty
|
||
|
// set(bytes): 0x20, 36, "12345678901234567890123456789012", "XXXX"
|
||
|
// storage: nonempty
|
||
|
// set(bytes): 0x20, 0
|
||
|
// storage: empty
|
||
|
// set(bytes): 0x20, 66, "12345678901234567890123456789012", "12345678901234567890123456789012", "12"
|
||
|
// storage: nonempty
|
||
|
// set(bytes): 0x20, 3, "abc"
|
||
|
// storage: nonempty
|
||
|
// set(bytes): 0x20, 0
|
||
|
// storage: empty
|