While deploying I get this error
creation of MyTestTokenerrored: Error encoding arguments: Error: expected array value (argument=null, value="+", code=INVALID_ARGUMENT, version=abi/5.0.7)
Apr 15, 2021, 4:20 PM
Looks like you're passing in a plus sign where the function expects an array
Apr 15, 2021, 4:21 PM
Super thanks for getting back to me
I have this constructor
constructor(address[] memory initialFeeBlackList) {
balances[msg.sender] = totalSupply;
for (uint i = 0; i < initialFeeBlackList.length; i++) {
addToFeeBlackList(initialFeeBlackList[i]);
}
emit Transfer(address(0), msg.sender, totalSupply);
}
I have this constructor
constructor(address[] memory initialFeeBlackList) {
balances[msg.sender] = totalSupply;
for (uint i = 0; i < initialFeeBlackList.length; i++) {
addToFeeBlackList(initialFeeBlackList[i]);
}
emit Transfer(address(0), msg.sender, totalSupply);
}
Apr 15, 2021, 4:22 PM
It's expecting am array of addresses to blacklist fees on it seems
Apr 15, 2021, 4:22 PM
If I pass an array I receive something like this
creation of MyTestT errored: Error encoding arguments: SyntaxError: JSON.parse: expected ',' or ']' after array element at line 1 column 3 of the JSON data
creation of MyTestT errored: Error encoding arguments: SyntaxError: JSON.parse: expected ',' or ']' after array element at line 1 column 3 of the JSON data
Just to answer my own question, an empty array worked well!
Apr 15, 2021, 4:30 PM