
* Extend compiler to allow bytes()/bytes as type * Add split_any, to_fixed_size, size, to_any_size, Int.to_bytes and String.to_bytes * Add tests * Use and and not andalso in unify, some things have side-effects * Bump to aebytecode v3.3.0 * Changelog + update documentation * fix wording in documentation
6 lines
214 B
Plaintext
6 lines
214 B
Plaintext
// include "String.aes"
|
|
contract BytesToX =
|
|
entrypoint fail1(b : bytes()) = Bytes.to_fixed_size(b)
|
|
entrypoint fail2(b : bytes(4)) = Bytes.to_fixed_size(b)
|
|
entrypoint fail3(b : bytes()) = Bytes.to_any_size(b)
|