implements PLN-0008
This commit is contained in:
+4
@@ -33,6 +33,7 @@ public record IRReservedMetadata(
|
||||
String abiMethod,
|
||||
long abiVersion,
|
||||
int retSlots,
|
||||
Integer assetLoweringParam,
|
||||
boolean capabilityDeclared,
|
||||
String requiredCapability,
|
||||
Span span) {
|
||||
@@ -44,6 +45,9 @@ public record IRReservedMetadata(
|
||||
if (retSlots < 0) {
|
||||
throw new IllegalArgumentException("host retSlots must be non-negative");
|
||||
}
|
||||
if (assetLoweringParam != null && assetLoweringParam < 0) {
|
||||
throw new IllegalArgumentException("assetLoweringParam must be non-negative");
|
||||
}
|
||||
requiredCapability = requiredCapability == null ? "" : requiredCapability;
|
||||
span = Objects.requireNonNull(span, "span");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user