We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b505daf commit cb4b134Copy full SHA for cb4b134
crates/rpc/rpc-types/src/outside_execution.rs
@@ -87,8 +87,8 @@ impl OutsideExecution {
87
88
pub fn as_felts(&self) -> Vec<Felt> {
89
match self {
90
- Self::V2(v) => OutsideExecutionV2::cairo_serialize(&v),
91
- Self::V3(v) => OutsideExecutionV3::cairo_serialize(&v),
+ Self::V2(v) => OutsideExecutionV2::cairo_serialize(v),
+ Self::V3(v) => OutsideExecutionV3::cairo_serialize(v),
92
}
93
94
@@ -100,6 +100,13 @@ impl OutsideExecution {
100
101
102
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
+
110
pub fn selector(&self) -> Felt {
111
112
Self::V2(_) => selector!("execute_from_outside_v2"),
0 commit comments