so I got a problem while developing a contract using a foundry. So I have a function that takes uint256 with array type as an argument. But when I did the test, It showed an implicit error.
TypeError: Invalid type for argument in function call. Invalid implicit conversion from uint256[3] memory to uint256[] memory requested.
contract Test {
uint256[] private threshold = [1000, 2000, 3000];
function setThreshold(uint256[] memory _threshold) public onlyOwner {
threshold = _threshold;
}
}
Does anybody know how to fix this problem?