* only used in contract api directly */
| 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 | } |
no test coverage detected