Eos: hello.abi is wrong

Created on 2 Apr 2018  路  6Comments  路  Source: EOSIO/eos

feng@feng-B250-HD3P:~/workSpace/eos/build/contracts/hello$ eosiocpp -o hello.wast hello.cpp

hello.cpp
`#include

include

using namespace eosio;

class hello : public eosio::contract {
public:
using contract::contract;

  /// @abi action  
  void hi( account_name user ) { 
     print( "Hello, ", name{user} ); 
  }

};

EOSIO_ABI( hello, (hi) ) `

hello.abi
{ "types": [], "structs": [], "actions": [], "tables": [] }
@bytemaster
Can you help me锛烼hank you very much.

Most helpful comment

@OuterSpaceTears looking at the empty ABI file format, it seems that you are using an older version of the abi generator (eosio-abigen) which is called by eosiocpp.

Make sure you are doing make install after building the project.

All 6 comments

@OuterSpaceTears how are you generating the ABI file?
Which OS are you using?

@elmato I get the same thing and I鈥檓 on Ubuntu 17.10 x64

Can you paste the command you are using to generate hello.abi and the output it gives?

I needed to sudo make install on the eos/build dir and tried generating the abi again and it worked! Thanks @elmato for helping me find what the issue was.

@OuterSpaceTears looking at the empty ABI file format, it seems that you are using an older version of the abi generator (eosio-abigen) which is called by eosiocpp.

Make sure you are doing make install after building the project.

I implemented./eos_build.sh, did not execute sudo make install, and solved this problem through sudo make install. Thank you very much.
@elmato

Was this page helpful?
0 / 5 - 0 ratings