paint-brush
Serializing string arrays in solidityby@vasa
9,627 reads
9,627 reads

Serializing string arrays in solidity

by Vaibhav Saini2mJune 2nd, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Solidity is still in development and that’s why it still lacks in a lot of features that a good programming language should have. One of the features which solidity is missing is that it cannot return or take multi-dimensional arrays as input. Well, that does not seem important but when we talk about strings, we realize that they are just arbitrary-length byte array(i.e. <code class="markup--code markup--p-code">byte[]</code>). So when you create a string array, you are creating a two-dimensional byte array(i.e. <code class="markup--code markup--p-code">byte[][]</code>). This is where we all get stuck. Kinda like a trap…

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coins Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Serializing string arrays in solidity
Vaibhav Saini HackerNoon profile picture
Vaibhav Saini

Vaibhav Saini

@vasa

Entrepreneur | Co-founder @tbc_inc, an MIT CIC incubated startup | Speaker |https://vaibhavsaini.com

About @vasa
LEARN MORE ABOUT @VASA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Vaibhav Saini HackerNoon profile picture
Vaibhav Saini@vasa
Entrepreneur | Co-founder @tbc_inc, an MIT CIC incubated startup | Speaker |https://vaibhavsaini.com

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Github
Stackexchange
Stackoverflow
Bitcoininsider
Azurefd
Infoq
Kiwix
Opensourceagenda
Twblogs
Narkhov
Askdev
Cxyzjd
Js4
Gitplanet
Gitplanet
Com
Awesomeopensource
Innominds