Timeline for Solidity: How to specify a (hard-coded) address as a literal
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 22, 2018 at 11:29 | comment | added | XWiśniowiecki | You can use Oracle to create compilation-time variable then used to send ether or create address with some clear for nodes algorithm that will create the same result on every node. Otherwise random address could stop all network because all nodes running your code result with different result and cannot go to consensus. | |
| Jun 24, 2017 at 22:04 | comment | added | ianinini | o0ragma0o: thanks for reporting this. I see the issue you raised is now closed. I wasn't clear on the conclusion. Does that mean we can expect it to be fixed in a subsequent release? | |
| Jun 22, 2017 at 4:42 | comment | added | o0ragman0o | This presents as non-intuitive. An address literal should by definition be constant and not run-time variable. An issue has been raised on the Solidity GH repo | |
| Jun 2, 2017 at 8:26 | comment | added | ianinini | This worked. Thank you. A quick follow on question: Do you know how to define a compile-time constant (as presumably this would be preferable to removing the constant modifier)? | |
| Jun 2, 2017 at 8:24 | vote | accept | ianinini | ||
| Jun 1, 2017 at 23:26 | history | edited | BokkyPooBah | CC BY-SA 3.0 | added 415 characters in body |
| Jun 1, 2017 at 23:19 | history | edited | BokkyPooBah | CC BY-SA 3.0 | added 415 characters in body |
| Jun 1, 2017 at 23:13 | history | answered | BokkyPooBah | CC BY-SA 3.0 |