Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

concatenate to require string in solidity ethereum

function append(string memory a, string memory b, string memory c) internal pure returns (string memory) {

  return string(abi.encodePacked(a, b, c));
}

string singleString = append('This ', 'is a single', ' string');
Source by ethereum.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #concatenate #require #string #solidity #ethereum
ADD COMMENT
Topic
Name
2+7 =