2020-10-28 18:48:16 +00:00
|
|
|
contract Test {
|
|
|
|
bytes x;
|
|
|
|
function set(bytes memory _a) public { x = _a; }
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// set(bytes): 0x20, 3, "abc"
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 0
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 0
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 1
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 31, "1234567890123456789012345678901"
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 0
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 36, "12345678901234567890123456789012", "XXXX"
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 0
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 3, "abc"
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 0
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 0
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 1
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 3, "abc"
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 0
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 36, "12345678901234567890123456789012", "XXXX"
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 0
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 0
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 1
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 66, "12345678901234567890123456789012", "12345678901234567890123456789012", "12"
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 0
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 3, "abc"
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 0
|
2020-10-28 18:48:16 +00:00
|
|
|
// set(bytes): 0x20, 0
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 1
|