-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
depositValue
not defined in tutorial
#109
Comments
@cag Also what does the following do? [gnosis.etherToken.constructor, await gnosis.etherToken.deposit.sendTransaction({ value: depositValue })],
[gnosis.etherToken.constructor, await gnosis.etherToken.approve.sendTransaction(event.address, depositValue)],
[event.constructor, await event.buyAllOutcomes.sendTransaction(depositValue)], What is deposit, approve doing here? Assume intention of the user here is just to buy some tokens and nothing else. |
@srameshr This is a consequence of the way wrapped ether is specified and the way ERC20 tokens are specified respectively. In short, And |
Okay, the original issue should be addressed in the docs at #115 now. I will close this issue when that gets merged, and then I will open another issue wrt srameshr's comment |
@zupino noticed this:
In this section of the tutorial, there is an example:
which is missing a definition for
depositValue
(should be 4 ETH following the tutorial text):The text was updated successfully, but these errors were encountered: