What is the approach to take an array as input from the user on frontend and then storing it in useState and pass it to a smart contract using ethers. I am just unable to create the correct format. Using react for frontend.
This is the function I wanna call.
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity ^0.8.0;
import "./MultiSig.sol";
contract ZarFactory {
event Created(MultiSig walletAddress, address creator);
function createWallet(address[] memory _owners, uint requiredSignature) external {
MultiSig wallet = new MultiSig(_owners,requiredSignature);
emit Created(wallet, msg.sender);
}
}