fix(AVM): add a convinience method

This commit is contained in:
drrtuy 2024-02-19 21:26:06 +00:00
parent b9d2c17c71
commit 9624d40f2f
2 changed files with 7 additions and 0 deletions

1
Cargo.lock generated
View File

@ -483,6 +483,7 @@ dependencies = [
"atty",
"avm-data-store",
"avm-interface",
"avm-server",
"bs58 0.5.0",
"clap 4.4.11",
"eyre",

View File

@ -74,6 +74,12 @@ impl SoftLimitsTriggering {
call_result_size_limit_exceeded,
}
}
pub fn is_triggered(&self) -> bool {
self.air_size_limit_exceeded
|| self.particle_size_limit_exceeded
|| self.call_result_size_limit_exceeded
}
}
impl InterpreterOutcome {