diff --git a/src/gen.rs b/src/gen.rs index 17b5b987..cb31090b 100644 --- a/src/gen.rs +++ b/src/gen.rs @@ -1118,7 +1118,7 @@ pub mod gen { #[derive(Clone, Debug, Deserialize, Serialize)] #[serde(untagged)] pub enum InvokeTxnTraceExecuteInvocation { - FunctionInvocation(FunctionInvocation), + FunctionInvocation(Box), RevertReason { revert_reason: String }, } @@ -1761,7 +1761,7 @@ pub mod gen { pub enum TransactionTrace { InvokeTxnTrace(InvokeTxnTrace), DeclareTxnTrace(DeclareTxnTrace), - DeployAccountTxnTrace(DeployAccountTxnTrace), + DeployAccountTxnTrace(Box), L1HandlerTxnTrace(L1HandlerTxnTrace), } diff --git a/tests/starknet/utils.rs b/tests/starknet/utils.rs index 3d32a339..828ae9d9 100644 --- a/tests/starknet/utils.rs +++ b/tests/starknet/utils.rs @@ -25,7 +25,7 @@ pub fn update_account(path: &str) -> Result<(), Error> { #[allow(dead_code)] pub fn copy_to_target() -> Result<(), Error> { - if !fs::metadata("./target/account").is_ok() { + if fs::metadata("./target/account").is_err() { fs::create_dir("./target/account/")?; fs::create_dir("./target/account/src/")?; fs::copy(