Feat:Adapt to the error code of the new version
@@ -57,7 +57,7 @@ BOAT_RESULT BoatHash(const BoatHashAlgType type, const BUINT8 *input, BUINT32 i
if (( hashed == NULL))
{
BoatLog(BOAT_LOG_CRITICAL, "param which 'hashed' can't be NULL.");
- return BOAT_ERROR_INVALID_ARGUMENT;
+ return BOAT_ERROR_COMMON_INVALID_ARGUMENT;
}
if (type == BOAT_HASH_KECCAK256)
@@ -79,7 +79,7 @@ BOAT_RESULT BoatHash(const BoatHashAlgType type, const BUINT8 *input, BUINT32 i
else
{
BoatLog(BOAT_LOG_CRITICAL, "unknown boat hash algorithm type.");
- result = BOAT_ERROR_INVALID_ARGUMENT;
+ result = BOAT_ERROR_COMMON_INVALID_ARGUMENT;
}
return result;
