Skip to content

I can't deploy lesson 3's code #11

Answered by AlbertoSinigaglia
chukynya asked this question in Q&A
Discussion options

You must be logged in to vote

The explanation might be pretty simple... and has nothing to do with your contract (infact, if you just use contract test{} you will still have the same error)... it's because in the testnet (at least, idk about the mainnet, i suppose that @PatrickAlphaC might helps here) you can't send transaction while deploying contracts; if you set your value attribute on the left to 0 you will see that it will work fine, but if you set to something more than zero, it will fail

EDIT: TLDR:
Make sure your value is set to 0 when deploying.

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
6 replies
@PatrickAlphaC
Comment options

@chukynya
Comment options

@PatrickAlphaC
Comment options

@chukynya
Comment options

@PatrickAlphaC
Comment options

Comment options

You must be logged in to vote
2 replies
@PatrickAlphaC
Comment options

@AlbertoSinigaglia
Comment options

Comment options

You must be logged in to vote
4 replies
@PatrickAlphaC
Comment options

@chukynya
Comment options

@AlbertoSinigaglia
Comment options

@chukynya
Comment options

Answer selected by PatrickAlphaC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants