Timeline for Get return value from solidity function
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 27, 2018 at 17:39 | comment | added | user19510 |
The comment in my code already anticipated that confusion. :-) Your console.log happens before you've assigned anything to y . Put the code that uses x inside the then function.
|
|
Jan 27, 2018 at 13:48 | comment | added | Winten |
Thank you for the reply. It works if I use ....getIdentifier().call().then( ... , but this does not quite solve my problem as I would like to use the variable later on in the code. Could you check my updated answer.
|
|
Jan 26, 2018 at 22:00 | history | answered | user19510 | CC BY-SA 3.0 |