add err code TableNameLengthOverflow(-51002)
@@ -39,6 +39,7 @@ public class PrecompiledCommon {
public static final int TableNameAndAddressNotExist_RC1 = 57;
public static final int TableNameAndAddressNotExist = 51001;
public static final int TableNameAndAddressNotExist_RC3 = -51001;
+ public static final int TableNameLengthOverflow = -51002;
public static final int InvalidNodeId = -51100;
public static final int LastSealer_RC1 = 100;
public static final int LastSealer = 51101;
@@ -123,6 +124,8 @@ public class PrecompiledCommon {
msg = "contract name and version already exist";
} else if (code == VersionExceeds) {
msg = "version string length exceeds the maximum limit";
+ } else if (code == TableNameLengthOverflow) {
+ msg = "tablename string length exceeds the maximum limit";
} else if (code == InvalidAddress) {
msg = "invalid address format";
} else if (code == InvalidContractKill) {
