Bytes.concat and Bytes.split #638
@ -143,6 +143,7 @@ compilable_contracts() ->
|
|||||||
"address_chain",
|
"address_chain",
|
||||||
"namespace_bug",
|
"namespace_bug",
|
||||||
"bytes_to_x",
|
"bytes_to_x",
|
||||||
|
"bytes_concat",
|
||||||
"aens",
|
"aens",
|
||||||
"tuple_match",
|
"tuple_match",
|
||||||
"cyclic_include",
|
"cyclic_include",
|
||||||
|
4
test/contracts/bytes_concat.aes
Normal file
4
test/contracts/bytes_concat.aes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
contract BytesConcat =
|
||||||
|
entrypoint rot(a : bytes(3)) =
|
||||||
|
switch (Bytes.split(a))
|
||||||
|
(b, c) => Bytes.concat(c : bytes(2), b)
|
Loading…
x
Reference in New Issue
Block a user