I need to update a contract by calling one of their function but I cant use web3.js so I need to send a raw transaction.
After this, you can call the method toPayload which will help you converting the values that you want to pass to your function into HEX Data.
You can use this approach and forget about how many zeros to pad with. As the toPayload function handles everything.
First you need the function selector for test(address,uint256) which is the first four bytes of the keccak-256 hash of that string, namely 0xba14d606.
Then you need the address as a 32-byte word: 0x000000000000000000000000c5622be5861b7200cbace14e28b98c4ab77bd9b4.
web3.eth.call. How can I set “data” param?