cyberway / golos.contracts

Smart contract for Golos dApp
http://golos.io
MIT License
5 stars 3 forks source link

Fix build after change signleton::get #961

Closed s-medvedev closed 4 years ago

s-medvedev commented 4 years ago

Build fails after change in CDT (https://github.com/cyberway/cyberway.cdt/commit/f7192203d47d3f41c85d360f4287ca6c8dad3529).

Build logs:

golos.referral/CMakeFiles/golos.referral.wasm.dir/src/golos.referral.cpp.o -c ../golos.referral/src/golos.referral.cpp
In file included from /golos.contracts/build/../golos.referral/src/golos.referral.cpp:1:
In file included from ../golos.referral/include/golos.referral/golos.referral.hpp:4:
In file included from ../golos.referral/include/golos.referral/parameters.hpp:2:
../golos.referral/../common/parameter.hpp:111:49: error: type 'state_type' (aka 'const golos::referral_state &') cannot be used prior to '::' because it has no members
        eosio::check(update || params.size() == state_type::params_count, "must provide all parameters in initial set");
                                                ^
/golos.contracts/build/../golos.referral/src/golos.referral.cpp:33:19: note: in instantiation of function template specialization 'golos::param_helper::set_parameters<golos::referral_params_setter, std::__1::variant<golos::param_wrapper<golos::breakout_parametrs_t, 2>, golos::param_wrapper<golos::expire_parametrs_t, 1>, golos::param_wrapper<golos::percent_parametrs_t, 1> >, eosio::singleton<13445306870675800064, golos::referral_state> >' requested here
    param_helper::set_parameters<referral_params_setter>(params, cfg, _self);
                  ^