fix: add ck_assert in 'test_006GetBalance_0001GetSuccess'
@@ -34,7 +34,8 @@ START_TEST(test_006GetBalance_0001GetSuccess)
BoatIotSdkInit();
- ethereumWalletPrepare();
+ result = ethereumWalletPrepare();
+ ck_assert(rtnVal == BOAT_SUCCESS);
result = BoatEthTxInit(g_ethereum_wallet_ptr, &tx_ctx, BOAT_TRUE, NULL,
"0x333333",
@@ -46,6 +47,7 @@ START_TEST(test_006GetBalance_0001GetSuccess)
result = BoatEthParseRpcResponseStringResult(cur_balance_wei, &parse_result);
ck_assert_int_eq(result, BOAT_SUCCESS);
+ ck_assert_ptr_ne(parse_result.field_ptr, NULL);
BoatFree(parse_result.field_ptr);
