implements PLN-0008

This commit is contained in:
2026-03-27 18:23:20 +00:00
parent d28916578b
commit b75b2a5825
19 changed files with 444 additions and 18 deletions
@@ -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");
}