[SOLVED] How do I handle unit256 w/JavaScript frontend?

If my contract requires unit256 inputs how do I handle the parameters in TypeScript and or JavaScript?

public getPendingStar = (poolId: number, userAddress: string) =>

Moralis.executeFunction({

  contractAddress: AppConfig.MASTERCHEFADDRESS,

  functionName: "pendingStar",

  abi: masterChefAbi,

  params: {

    _pid: poolId,

    _user: userAddress,

  },

});

What did you try? doesn’t work with simple numbers as parameters like 1, 2, 1000, 40000?

nope 1 and “1” both didnt work.

Nvm i got it. I was using wrong _pid: poolId. poolId had to be a string not number.