MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / get_contract_id_in_api

Function get_contract_id_in_api

src/Chain/libraries/glua/thinkyoung_lua_lib.cpp:2524–2529  ·  view source on GitHub ↗

* only used in contract api directly */

Source from the content-addressed store, hash-verified

2522 * only used in contract api directly
2523 */
2524 const char *get_contract_id_in_api(lua_State *L)
2525 {
2526 const auto &contract_id = get_current_using_contract_id(L);
2527 auto contract_id_str = malloc_and_copy_string(L, contract_id.c_str());
2528 return contract_id_str;
2529 }
2530
2531 }
2532 }

Calls 3

malloc_and_copy_stringFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected