diff --git a/dap-sdk/crypto/test/crypto/CMakeLists.txt b/dap-sdk/crypto/test/crypto/CMakeLists.txt index ef6afe9d0c1c79ae3e28bd09486a1975e0631996..8620c56c4b2039fe2d788a50d9aacf8d7f7675ac 100755 --- a/dap-sdk/crypto/test/crypto/CMakeLists.txt +++ b/dap-sdk/crypto/test/crypto/CMakeLists.txt @@ -4,7 +4,7 @@ project(crypto-test) # init CellFrame SDK add_definitions("-DDAP_VERSION=\"${CPACK_PACKAGE_VERSION_MAJOR}-${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}\"") set(SUBMODULES_NO_BUILD ON) -include (cellframe-sdk/cmake/OS_Detection.cmake) +include (../../../../cmake/OS_Detection.cmake) set(DAPSDK_MODULES "core crypto network-core network-client network-server") # There is no need, as it was added in cellframe-sdk/CMakeLists.txt diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c index be8be7a104ed649f32f5ce897adea379f9b02d44..94544747a42e70f2bde55de7cf3f7d509d469b0d 100644 --- a/modules/net/dap_chain_node_cli_cmd.c +++ b/modules/net/dap_chain_node_cli_cmd.c @@ -3889,6 +3889,17 @@ int com_tx_create(int argc, char ** argv, char **str_reply) return -1; } + // + // Check, if network ID is same as ID in destination wallet address. If not - operation is cancelled. + // + + if (addr_to->net_id.uint64 != l_net->pub.id.uint64) + { + dap_chain_node_cli_set_reply_text(str_reply, "destination wallet network ID=0x%llx and network ID=0x%llx is not equal. Please, change network name or wallet address", + addr_to->net_id.uint64, l_net->pub.id.uint64); + return -1; + } + dap_string_t *string_ret = dap_string_new(NULL); //g_string_printf(string_ret, "from=%s\nto=%s\nval=%lld\nfee=%s\nval_fee=%lld\n\n", // addr_base58_from, addr_base58_to, value, addr_base58_fee, value_fee);