Bytes.concat and Bytes.split #638
@ -143,6 +143,7 @@ compilable_contracts() ->
|
||||
"address_chain",
|
||||
"namespace_bug",
|
||||
"bytes_to_x",
|
||||
"bytes_concat",
|
||||
"aens",
|
||||
"tuple_match",
|
||||
"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