0

I've followed the guide on the Provable site (https://docs.provable.xyz/#eos-quick-start-checking-the-query-id) but when I try to compile, I receive the following error (it's a warning but it's fatal):

In file included from /var/folders/8q/q2rvsm3d2pj6fwbth49cp3r00000gn/T//dapp.cpp:3: /Users/ekkis/dev/eos/provable/eos_api.hpp:44:6: warning: ORACLIZE_NETWORK_NAME is not set, setting it to "eosio_unknown".. [possible values are "eosio_mainnet"/"eosio_testnet_jungle"/"eosio_testnet_kylin"/"eosio_unknown"] [-W#warnings] #warning ORACLIZE_NETWORK_NAME is not set, setting it to "eosio_unknown".. [possible values are "eo... ^ 1 warning generated.

so I'm now calling the compiler like this:

$ eosio-cpp -DORACLIZE_NETWORK_NAME=\"eosio_testnet_kylin\" -I. dapp.cpp -o dapp.wasm --abigen

which instead breaks with:

In file included from /var/folders/8q/q2rvsm3d2pj6fwbth49cp3r00000gn/T//dapp.cpp:3: /Users/ekkis/dev/eos/provable/eos_api.hpp:638:36: error: use of undeclared identifier 'eosio_testnet_kylin' std::string context_name_str = ORACLIZE_NETWORK_NAME; ^ :3:31: note: expanded from here #define ORACLIZE_NETWORK_NAME eosio_testnet_kylin ^ 1 error generated. /usr/local/Cellar/eosio.cdt/1.6.3/opt/eosio.cdt/bin/wasm-ld: error: cannot open /var/folders/8q/q2rvsm3d2pj6fwbth49cp3r00000gn/T//dapp.cpp.o: No such file or directory

I don't really want to define this term in the source code as its value depends on an environment file, but how do I get this to work?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.