1

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?

0

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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.