This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Problem with promisses #4
Comments
Hi @mhhf. Try this for me:
If you return a promise within a promise's handler, it will continue executing that promise chain. So in this case, |
Edited the comment above; lots of typos. |
Works like a charm! I should have read about promises, d'oh! |
Cheers! Let me know if you have anymore questions! |
mhhf
added a commit
to mhhf/ether-pudding
that referenced
this issue
Aug 25, 2015
Constant functions don't change the state and arn't executing a transaction, therefore they don't need to be synchronized.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have difficulties to work with Promises:
Every snipped is run in the browser truffle(v0.0.13) env with a fresh chain(testrpc) and contract deployment.
I use the Coin Contract from the Solidity Tutorial.
The following web3 code works well:
but the following pudding code never return its promise:
The code works well until the correct balance(42) is received via rpc.
Then suddenly every second the following rpc request is send:
with following response
where to go from here?
The text was updated successfully, but these errors were encountered: