tronprotocol / tron-box

TronBox - Simple development framework for tronweb
31 stars 23 forks source link

Can not deploy after upgrade to 2.2.0 #33

Closed emn178 closed 5 years ago

emn178 commented 5 years ago

2.1.10 has problem "CONTRACT_VALIDATE_ERROR" #32 try to upgrade to 2.2.0, but it still doesn't work.

Running migration: 1_initial_migration.js
  Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: Contract has not been deployed on the network
    at /Users/emn178/inno/tron-joyso-contracts/node_modules/tronbox/build/webpack:/packages/tronwrap/index.js:136:1
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
GarryPlays commented 5 years ago

ha lol, thought it was just me! neither, all kaputt

sullof commented 5 years ago

There was a critical error in the previous version. We just published TronBox 2.0.1, which supports the new java-tron 3.2 and fixes a couple of issues. Can you update and try again, please?

npm update -g tronbox
sullof commented 5 years ago

@GarryPlays This should be fixed. Reopen it, please, if not.

infine8 commented 5 years ago

still doesn't work even for test "Metacoin" project. nothing was changed. i'm using tronbox v 2.3.0

Using network 'shasta'.

Running migration: 1_initial_migration.js Deploying Migrations... ERROR: Unknown error: { "code": "CONTRACT_VALIDATE_ERROR", "message": "636f6e74726163742076616c6964617465206572726f72203a206163636f756e74206e6f7420657869737473" }

sullof commented 5 years ago

That message is contract validate error : account not exists. With TronBox 2.3.0, when there is an error during the deployment, you should see the link to get info about the transaction. Did you check it?

sullof commented 5 years ago

BTW,metacoin-box passes all the tests on Shasta without issue (I can share a video, if you don't believe me). Is it possible that the account that you are using doesn't have enough energy or bandwidth?

GarryPlays commented 5 years ago

I would side with sullof here. I had the same issue, but since shasta recently reset, your account will most likely not have any tron in it. Of course with shasta refill being down since 2 days it seems mission impossible to refill your account :D Or I am just hitting every single maintenance window they have. Feel free to send me some shasta tron if you have TU1TYKYNKE928LvmXSSR7iiShr3SjexomY

infine8 commented 5 years ago

OK. You're right, it was a bad account. it is better now but I get an error "contractRet":"OUT_OF_ENERGY". Any ideas how I can obtain energy in Shasta network? found only tronscan.org but there is no any opportunity to select an another network except mainnet

GarryPlays commented 5 years ago

https://www.trongrid.io/shasta/ It's enough to own tron. I think. I could deploy fine and I never got energy. Hey check out https://trx.chibifighters.io if you like :D

sullof commented 5 years ago

@infine8 It can be a problem in the settings. Try to increase the feeLimit in tronbox.js, if you modified it. Or remove it completely, and the default will be set by TronBox.

sullof commented 5 years ago

To request TRX on Shasta, look at https://www.trongrid.io/shasta/

sullof commented 5 years ago

@GarryPlays To freeze TRX (and for other stuff) you can install TronLink.

GarryPlays commented 5 years ago

@sullof huh? I am a living Popsicle. I think it was @infine8 asking. And yes, TronLink all the way.

sullof commented 5 years ago

@GarryPlays You are right! It's Monday morning, my brain is still not fully working :-)