@@ -161,7 +161,7 @@ public void test3SystemConfigService() throws ConfigException, ContractException
161
161
CryptoKeyPair cryptoKeyPair = client .getCryptoSuite ().getCryptoKeyPair ();
162
162
SystemConfigService systemConfigService = new SystemConfigService (client , cryptoKeyPair );
163
163
boolean authCheck = client .isAuthCheck ();
164
- if (client .getChainVersion ().compareToVersion (EnumNodeVersion .BCOS_3_3_0 ) >= 0 ) {
164
+ if (client .getChainCompatibilityVersion ().compareTo (EnumNodeVersion .BCOS_3_3_0 . toVersionObj () ) >= 0 ) {
165
165
String value = client .getSystemConfigByKey (AUTH_STATUS ).getSystemConfig ().getValue ();
166
166
if (Objects .equals (value , "0" )) {
167
167
authCheck = false ;
@@ -209,7 +209,7 @@ public void test5CRUDService() throws ConfigException, ContractException {
209
209
}
210
210
RetCode code ;
211
211
Map <String , List <String >> desc ;
212
- if (client .getChainVersion ().compareToVersion (EnumNodeVersion .BCOS_3_2_0 ) >= 0 ) {
212
+ if (client .getChainCompatibilityVersion ().compareTo (EnumNodeVersion .BCOS_3_2_0 . toVersionObj () ) >= 0 ) {
213
213
code = tableCRUDService .createTable (tableName , Common .TableKeyOrder .valueOf (0 ), key , valueFields );
214
214
desc = tableCRUDService .descWithKeyOrder (tableName );
215
215
} else {
@@ -231,7 +231,7 @@ public void test5CRUDService() throws ConfigException, ContractException {
231
231
// select key
232
232
Map <String , String > result = tableCRUDService .select (tableName , "key1" );
233
233
234
- if (client .getChainVersion ().compareToVersion (EnumNodeVersion .BCOS_3_2_0 ) >= 0 ) {
234
+ if (client .getChainCompatibilityVersion ().compareTo (EnumNodeVersion .BCOS_3_2_0 . toVersionObj () ) >= 0 ) {
235
235
ConditionV320 condition = new ConditionV320 ();
236
236
condition .EQ (key , "key1" );
237
237
condition .setLimit (0 , 10 );
@@ -278,7 +278,7 @@ public void test51SyncCRUDService() throws ConfigException, ContractException, J
278
278
List <String > valueFiled = new ArrayList <>();
279
279
valueFiled .add ("field" );
280
280
RetCode retCode ;
281
- if (client .getChainVersion ().compareToVersion (EnumNodeVersion .BCOS_3_2_0 ) >= 0 ) {
281
+ if (client .getChainCompatibilityVersion ().compareTo (EnumNodeVersion .BCOS_3_2_0 . toVersionObj () ) >= 0 ) {
282
282
retCode = crudService .createTable (tableName , Common .TableKeyOrder .valueOf (0 ), "key" , valueFiled );
283
283
} else {
284
284
retCode = crudService .createTable (tableName , "key" , valueFiled );
@@ -355,7 +355,7 @@ public void test52AsyncCRUDService()
355
355
List <String > valueFiled = new ArrayList <>();
356
356
valueFiled .add ("field" );
357
357
String key = "key" ;
358
- if (client .getChainVersion ().compareToVersion (EnumNodeVersion .BCOS_3_2_0 ) >= 0 ) {
358
+ if (client .getChainCompatibilityVersion ().compareTo (EnumNodeVersion .BCOS_3_2_0 . toVersionObj () ) >= 0 ) {
359
359
crudService .createTable (tableName , Common .TableKeyOrder .valueOf (0 ), key , valueFiled );
360
360
} else {
361
361
crudService .createTable (tableName , key , valueFiled );
@@ -424,7 +424,7 @@ public void test6KVService() throws ConfigException, ContractException {
424
424
Assert .assertEquals (0 , code .getCode ());
425
425
// desc
426
426
Map <String , String > desc ;
427
- if (client .getChainVersion ().compareToVersion (EnumNodeVersion .BCOS_3_2_0 ) >= 0 ) {
427
+ if (client .getChainCompatibilityVersion ().compareTo (EnumNodeVersion .BCOS_3_2_0 . toVersionObj () ) >= 0 ) {
428
428
desc = kvTableService .descWithKeyOrder (tableName );
429
429
} else {
430
430
desc = kvTableService .desc (tableName );
0 commit comments