Add string type so that the context is clearer in web3, etc.
Add string type so that the context is clearer in web3, etc.
Like bytes type, add string[N] type in contracts and string in the ABIs.
For now, bytes is the substitute for string in Solidity (e.g. #1209) but it's not clear that they are intended to be read as a string or a byte array. Let's use a new type string for such cases.
At EVM-level, string[N] is the same with bytes[N] but length or index access are not allowed like Solidity. In the ABI, the type is represented as string.
# ERC20
name: public(string[5])
symbol: public(string[40])
This is backwards compatibile.
N/A
Copyright and related rights waived via CC0
@nrryuya this actually what I am planning to work on next, so good timing :)
We seem to already have a VIP for this: https://github.com/ethereum/vyper/issues/358 :)
We seem to already have a VIP for this: #358 :)
Wow! Long time ago!
Implemented, part of Beta-8 release :)
Most helpful comment
@nrryuya this actually what I am planning to work on next, so good timing :)