trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.32k forks source link

ERROR sending contract #15

Closed tymat closed 9 years ago

tymat commented 9 years ago

Getting an error but not telling me what's actually wrong.

truffle deploy --verbose-rpc --stack --verbose --debug
Initializing
Command-line options: --verbose-rpc=--stack, --verbose, --debug=1

Reading "Gruntfile.coffee" Gruntfile...OK

Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Initializing config...OK

Registering "grunt-available-tasks" local Npm module tasks.
Reading /usr/local/lib/node_modules/truffle/node_modules/grunt-available-tasks/package.json...OK
Parsing /usr/local/lib/node_modules/truffle/node_modules/grunt-available-tasks/package.json...OK
Loading "available_tasks.js" tasks...OK
+ availabletasks

Registering "grunt-contrib-watch" local Npm module tasks.
Reading /usr/local/lib/node_modules/truffle/node_modules/grunt-contrib-watch/package.json...OK
Parsing /usr/local/lib/node_modules/truffle/node_modules/grunt-contrib-watch/package.json...OK
Loading "watch.js" tasks...OK
+ watch
Loading "Gruntfile.coffee" tasks...OK
+ build, compile, create:contract, create:test, default, deploy, dist, exec, init, init:config, init:contracts, init:tests, list, list:after, test, version

Running tasks: deploy
[D] Task source: /usr/local/lib/node_modules/truffle/Gruntfile.coffee
Using environment development.
   > {
   >   "jsonrpc": "2.0",
   >   "method": "eth_coinbase",
   >   "params": [],
   >   "id": 1
   > }
 <   {
 <     "id": 1,
 <     "jsonrpc": "2.0",
 <     "result": "0xe19df13253d2d5c460845a712c23730e55031b4f"
 <   }
Compiling HelloSystem.sol...
   > {
   >   "jsonrpc": "2.0",
   >   "method": "eth_getCompilers",
   >   "params": [],
   >   "id": 2
   > }
 <   {
 <     "id": 2,
 <     "jsonrpc": "2.0",
 <     "result": [
 <       "Solidity"
 <     ]
 <   }
   > {
   >   "jsonrpc": "2.0",
   >   "method": "eth_compileSolidity",
   >   "params": [
   >     "contract HelloSystem {\n\n    address owner;\n\n        function HelloSystem() {\n        owner = msg.sender;\n    }\n\n    function remove() {\n        if (msg.sender == owner){\n            suicide(owner);\n        }\n    }\n}\n\n"
   >   ],
   >   "id": 3
   > }
 <   {
 <     "id": 3,
 <     "jsonrpc": "2.0",
 <     "result": {
 <       "HelloSystem": {
 <         "code": "0x60606040525b33600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b60d58061003f6000396000f30060606040526000357c010000000000000000000000000000000000000000000000000000000090048063a7f43779146037576035565b005b60406004506042565b005b600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141560d257600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b5b56",
 <         "info": {
 <           "source": "contract HelloSystem {\n\n    address owner;\n\n        function HelloSystem() {\n        owner = msg.sender;\n    }\n\n    function remove() {\n        if (msg.sender == owner){\n            suicide(owner);\n        }\n    }\n}\n\n",
 <           "language": "Solidity",
 <           "languageVersion": "0",
 <           "compilerVersion": "0.9.28",
 <           "abiDefinition": [
 <             {
 <               "constant": false,
 <               "inputs": [],
 <               "name": "remove",
 <               "outputs": [],
 <               "type": "function"
 <             },
 <             {
 <               "inputs": [],
 <               "type": "constructor"
 <             }
 <           ],
 <           "userDoc": {
 <             "methods": {}
 <           },
 <           "developerDoc": {
 <             "methods": {}
 <           }
 <         }
 <       }
 <     }
 <   }
ERROR sending contract:
tymat commented 9 years ago

Sorry it was a PEBCAK situation.

Was adding .sol extension to the app.json

In any case I think some verbose error messages would be helpful.