[Cita][#1193]modify BoatPort_keyCreate test err
@@ -61,7 +61,9 @@ BoatCitaWallet *BoatCitaWalletInit(const BoatCitaWalletConfig *config_ptr, BUINT
BoatLog(BOAT_LOG_CRITICAL, "web3 interface initialization falied.");
return NULL;
}
- //Configure priKey context information
+
+ if (config_ptr->load_existed_wallet == false)
+ {
if (BOAT_SUCCESS != BoatPort_keyCreate(&config_ptr->prikeyCtx_config, &wallet_ptr->account_info.prikeyCtx))
{
web3_deinit(wallet_ptr->web3intf_context_ptr);
@@ -69,6 +71,7 @@ BoatCitaWallet *BoatCitaWalletInit(const BoatCitaWalletConfig *config_ptr, BUINT
BoatLog(BOAT_LOG_CRITICAL, "Failed to exec BoatPort_keyCreate.");
return NULL;
}
+ }
// Configure account address
BoatHash(BOAT_HASH_SHA256, wallet_ptr->account_info.prikeyCtx.pubkey_content,
