nebulasio / web-wallet

GNU Lesser General Public License v3.0
265 stars 188 forks source link

deploy contract got 400 error code. #46

Closed zslucky closed 6 years ago

zslucky commented 6 years ago

After test, I submit the contract, but got 400 error.

image

smartpunter commented 6 years ago

It means that your contract source has some errors. Try to run your contract with node.js and see what errors you have, usually it is just some misprints.

But wallet should notify user about this, not just silently abort transaction.

zslucky commented 6 years ago

thanks @smartpunter , may not source errors, testing told me insufficient balance, is that mean I should paid gas for deploying? Or I think it should give me a friendly error message.

smartpunter commented 6 years ago

Ah yeah, definitely, you need to have some NAS on your account. 1 NAS will be enough for roughly 30 000 000 transactions. Do the math, how much should you spend :)

zslucky commented 6 years ago

@smartpunter thanks , I see, but I still think we should have a friendly error message 😄