I have a library which has the following function:
function strConcat(
string memory _a,
string memory _b
)
internal pure
returns (string memory)
My contract implements the library and uses the following:
using StringConverter for *;
...
uint minLevel = getStorageUint(
r,
("_conf_").strConcat(pSetting),
pSettingIndex,
0
);
This is working, but if I change:
using StringConverter for string;
I can see the error:
TypeError: Member "strConcat" not found or not visible after argument-dependent lookup in literal_string "_conf_".
("_conf_").strConcat(pSetting),
What can I type at using to make it working correctly?
for bytes32– cqx Sep 03 '19 at 18:38It's kinda outdated, so you have to change string to string memory everywhere and i to uint i in loops (just tested on remix).
– Radek_pl Sep 03 '19 at 18:49