Arachnid / solidity-stringutils

Basic string utilities for Solidity
Apache License 2.0
1.14k stars 373 forks source link

concatenate three strings #21

Open bsollenb54 opened 6 years ago

bsollenb54 commented 6 years ago

How would concatenate three strings?

var 2 = "abc".toSlice().concat("def".toSlice().concat("ghi".toSlice()));

What am I missing?

rohalla2 commented 6 years ago

Having the same issue. It only seems to concat the first two strings for me.

longzhi commented 5 years ago

@bsollenb54 It should be: var 2 = "abc".toSlice().concat("def".toSlice().toSlice().concat("ghi".toSlice()));