Skip to content

Commit cb4b134

Browse files
committed
fmt
1 parent b505daf commit cb4b134

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

crates/rpc/rpc-types/src/outside_execution.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ impl OutsideExecution {
8787

8888
pub fn as_felts(&self) -> Vec<Felt> {
8989
match self {
90-
Self::V2(v) => OutsideExecutionV2::cairo_serialize(&v),
91-
Self::V3(v) => OutsideExecutionV3::cairo_serialize(&v),
90+
Self::V2(v) => OutsideExecutionV2::cairo_serialize(v),
91+
Self::V3(v) => OutsideExecutionV3::cairo_serialize(v),
9292
}
9393
}
9494

@@ -100,6 +100,13 @@ impl OutsideExecution {
100100
}
101101
}
102102

103+
pub fn is_empty(&self) -> bool {
104+
match self {
105+
Self::V2(v) => v.calls.is_empty(),
106+
Self::V3(v) => v.calls.is_empty(),
107+
}
108+
}
109+
103110
pub fn selector(&self) -> Felt {
104111
match self {
105112
Self::V2(_) => selector!("execute_from_outside_v2"),

0 commit comments

Comments
 (0)