I am using a clone of the pancakeSwap lottery and attempting to use a write function. I keep getting an error in the BSC testnet VRFCoordinatorV2 contract saying revert InvalidCalldata();. The function I'm calling only takes a uint as an input, but somewhere along the line it checks if data.length == 32 and it's failing. Here is my failed tx:
Why is this happening?