skmgoldin / tcr

A generic token-curated registry
Apache License 2.0
278 stars 131 forks source link

error deploying proxy script deploy_proxies.js #89

Open skybach opened 6 years ago

skybach commented 6 years ago

truffle exec scripts/deploy_proxies.js failed silently.

Using network 'development'.

RegistryFactory:   0x23e84570f7b28ad0d5e5545d398009194a8734f3

Deploying proxy contracts...

did a truffle debug and got the following error

Parameterizer.sol:

248:     @param _challengeID     the challenge ID to claim tokens for
249:     */
250:     function claimReward(uint _challengeID) public {
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

debug(development:0xb38b118c...)> 

Transaction halted with a RUNTIME ERROR.

This is likely due to an intentional halting expression, like assert(), require() or revert(). It can also be due to out-of-gas exceptions. Please inspect your transaction parameters and contract code to determine the meaning of this error.
skybach commented 6 years ago

I think it scripts/deploy_proxies.js is running out of gas. the smart contract might be too huge.

  develop:testrpc   Transaction: 0x245aa0b4345a05a6ad595819ccede330d78b350bbbb1a2b77ab28f866b607735 +0ms
  develop:testrpc   Gas usage: 6441856 +0ms
  develop:testrpc   Block Number: 38 +0ms
  develop:testrpc   Block Time: Fri Sep 14 2018 19:09:09 GMT+0800 (+08) +0ms
  develop:testrpc   Runtime Error: revert +0ms
  develop:testrpc  +0ms