diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c index 49810efad1f5c8a0ceb5dbdaf601eb3bb9766a1f..e641a2051cd1e75be7c4678c794469a1d85441fb 100644 --- a/modules/net/dap_chain_node_cli_cmd.c +++ b/modules/net/dap_chain_node_cli_cmd.c @@ -4370,6 +4370,12 @@ int com_token_decl(int a_argc, char ** a_argv, void **a_str_reply) DAP_DEL_Z(l_params); return -91; } + if (!dap_strcmp(l_ticker, l_params->ext.delegated_token_from)) { + dap_cli_server_cmd_set_reply_text(a_str_reply, "Delegated token ticker cannot match the original ticker"); + DAP_DEL_Z(l_params); + return -92; + } + dap_chain_datum_token_tsd_delegate_from_stake_lock_t l_tsd_section; strcpy((char *)l_tsd_section.ticker_token_from, l_params->ext.delegated_token_from); // l_tsd_section.token_from = dap_hash_fast();