Move files.

This commit is contained in:
chriseth
2020-03-26 17:47:36 +01:00
parent 67e9776418
commit 165f7bf60f
53 changed files with 0 additions and 0 deletions
@@ -0,0 +1,17 @@
contract Test {
string s;
bytes b;
function f(string memory _s, uint256 n) public returns (bytes1) {
b = bytes(_s);
s = string(b);
return bytes(s)[n];
}
function l() public returns (uint256) {
return bytes(s).length;
}
}
// ----
// f(string,uint256): 0x40, 0x02, 0x06, "abcdef" -> "c"
// l() -> 0x06