I am trying to inherit the 'eosio.token' contract found in '/eos/contracts/eosio.token/' into my new class 'my.token'
My CMakeLists.txt looks like
file(GLOB ABI_FILES "*.abi")
configure_file("${ABI_FILES}" "${CMAKE_CURRENT_BINARY_DIR}" COPYONLY)
add_wast_executable(TARGET my.token
INCLUDE_FOLDERS "${STANDARD_INCLUDE_FOLDERS}"
LIBRARIES libc++ libc eosiolib eosio.token
DESTINATION_FOLDER ${CMAKE_CURRENT_BINARY_DIR}
)
my.token.hpp is
#include <eosio.token/eosio.token.hpp>
namespace eosio {
class mytoken : public token {
public:
mytoken( account_name self ) : token( self ) {}
};
}
And my.token.cpp is just
#include "my.token.hpp"
EOSIO_ABI(eosio::mytoken, (create)(issue)(transfer) )
When I compile with
$cd ~/eos/build
$make
It builds fine. No problem. But when I go to deploy the contract with
cleos set contract mytoken ~/eos/build/contracts/my.token/
I get the following error in the nodeos console output:
2068185ms thread-0 http_plugin.cpp:405 handle_exception ] FC Exception encountered while processing chain.push_transaction
2068185ms thread-0 http_plugin.cpp:406 handle_exception ] Exception Details: 10 assert_exception: Assert Exception
!"unresolvable": env._ZN5eosio5token6createEyNS_5assetE
{"module":"env","export":"_ZN5eosio5token6createEyNS_5assetE"}
thread-0 wasm_interface.hpp:41 resolve
{"mod_name":"env","export_name":"_ZN5eosio5token6createEyNS_5assetE"}
thread-0 wasm_interface.hpp:43 resolve
{"_pending_console_output.str()":""}
thread-0 apply_context.cpp:62 exec_one
Does anyone know how to do this, or is it not supported yet?