Frequently Asked Questions
Frequently Asked Questions
Basic Questions
What is the transaction “payload”?
Create a contract that can be killed and return funds
If I return an enum, I only get integer values in web3.js. How to get the named values?
enum, I only get integer values in web3.js. How to get the named values?Can state variables be initialized in-line?
What are some examples of basic string manipulation (substring, indexOf, charAt, etc)?
substring, indexOf, charAt, etc)?Can I concatenate two strings?
Why is the low-level function .call() less favorable than instantiating a contract with a variable (ContractB b;) and executing its functions (b.doSomething();)?
.call() less favorable than instantiating a contract with a variable (ContractB b;) and executing its functions (b.doSomething();)?What happens if you send ether along with a function call to a contract?
Advanced Questions
How do you get a random number in a contract? (Implement a self-returning gambling contract.)
Get return value from non-constant function from another contract
How do you create 2-dimensional arrays?
How do I initialize a contract with only a specific amount of wei?
Can a contract pass an array (static size) or string or bytes (dynamic size) to another contract?¶
bytes (dynamic size) to another contract?¶What does the following strange check do in the Custom Token contract?
Why are explicit conversions between fixed-size bytes types and integer types failing?
Why can number literals not be converted to fixed-size bytes types?
More Questions?
Last updated
Was this helpful?