Can't deploy contract with array argument

Hope someone can help me. I can’t deploy the multi-sig wallet contract. Here’s the constructor:

address[] private owners;
uint private approvalLimit;

constructor(address[] memory _owners, uint _approvalLimit) {
        owners = _owners;
        approvalLimit = _approvalLimit;

I input this (two addresses in an array):
[0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB, 0x617F2E2fD72FD9D5503197092aC168c91465E7f2]

and an uint,


and get this error message:

creation of MSWallet errored: Error encoding arguments: Error: expected array value (argument=null, value="[0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB, 0x617F2E2fD72FD9D5503197092aC168c91465E7f2]", code=INVALID_ARGUMENT, version=abi/5.0.7)

1 Like

Hey @LaszloD

You have to pass the array in double quotes.

_owners: ["0x5B38Da6a701c568545dCfcB03FcB875f56beddC4","0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2"]

_approvalLimit: 2


1 Like