CashScript / cashscript

⚖️ Easily write and interact with Bitcoin Cash smart contracts
https://cashscript.org
MIT License
115 stars 80 forks source link

Add typecasting to variable size bytes #63

Closed rkalis closed 4 years ago

rkalis commented 4 years ago

Currently bytes type casting is done like this:

bytes8(...)
bytes4(...)
bytes100(...)
bytes(...)

But it can be possible that the size of your bytes type is determined by another variable. So we should add the following syntax:

bytes(..., size)
rkalis commented 4 years ago

This was added in v0.4.0.