Hello, anyone know how to pass string array as a function in solidity?

May 4, 2022, 12:05 AM
i know about that
May 4, 2022, 12:14 AM
do share
May 4, 2022, 12:14 AM
function(string[] memory aa)
May 4, 2022, 12:16 AM
and what params do i pass into this function?
e.g function helloarray(string[] memory aa) {
when i call helloarray(what do i put in here)
May 4, 2022, 12:19 AM
Just pass array of strings as a arguments..
May 4, 2022, 12:21 AM
string [] memory ss= new string[](6);
for (uint256 i=0;i<6;i++){
ss[i]='xxxx';
}
helloarray(ss)
understand?
May 4, 2022, 12:34 AM
Durr
Sorry it's late here, yeah get it
Thanks dude. Can't believe I missed that lol
May 4, 2022, 12:45 AM

© 2024 Draquery.com All rights reserved.