mirror of
https://github.com/fluencelabs/aquavm
synced 2025-04-24 14:52:15 +00:00
fix(AVM): add a convinience method
This commit is contained in:
parent
b9d2c17c71
commit
9624d40f2f
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -483,6 +483,7 @@ dependencies = [
|
||||
"atty",
|
||||
"avm-data-store",
|
||||
"avm-interface",
|
||||
"avm-server",
|
||||
"bs58 0.5.0",
|
||||
"clap 4.4.11",
|
||||
"eyre",
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user