In Solidity, function arguments are usually byte, uint, string types. So when calling contract functions through web3 object, do we need to convert arguments into proper types? Or there are implicit type conversions in web3?
Can I just input string values in the javascript UI?
[Ethereum] How to set the smart contract function argument in web3 object
contract-developmentdapp-developmentsolidityweb3js
Best Answer
you don't need to convert the values into solidity types. web3js is a javascript API so it supports only the javascript type (details) but it doesn't matter. just use the string inputs from your form in var (javascript).