【區塊鏈】智能合約字符串拼接

智能合約字符串拼接 string是數組,solidity不支持動態擴容,只能寫個for循環一個個加,此處採用的作法是轉成bytesweb function stringAdd(string a, string b) returns(string){ bytes memory _a = bytes(a); bytes memory _b = bytes(b); bytes m
相關文章
相關標籤/搜索