File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed
Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -620,6 +620,7 @@ impl From<InvokeTransaction> for starknet_api::transaction::InvokeTransaction {
620620 nonce_data_availability_mode,
621621 fee_data_availability_mode,
622622 proof_facts,
623+ proof : _,
623624 } ) => Self :: V3 ( starknet_api:: transaction:: InvokeTransactionV3 {
624625 resource_bounds : resource_bounds. into ( ) ,
625626 tip,
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ use starknet_api::transaction::fields::{
3535 ContractAddressSalt ,
3636 Fee ,
3737 PaymasterData ,
38+ Proof ,
3839 ProofFacts ,
3940 Resource ,
4041 ResourceBounds ,
@@ -449,6 +450,7 @@ pub struct InvokeTransactionV3 {
449450 pub nonce_data_availability_mode : DataAvailabilityMode ,
450451 pub fee_data_availability_mode : DataAvailabilityMode ,
451452 pub proof_facts : ProofFacts ,
453+ pub proof : Proof ,
452454}
453455
454456impl From < InvokeTransactionV3 > for client_transaction:: InvokeTransaction {
@@ -554,6 +556,8 @@ impl TryFrom<starknet_api::transaction::InvokeTransaction> for InvokeTransaction
554556 paymaster_data,
555557 account_deployment_data,
556558 proof_facts,
559+ // TODO(AvivG): Understand in what flow this is used. Is info lost?
560+ proof : Proof :: default ( ) ,
557561 } ) ) ,
558562 }
559563 }
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ use starknet_api::transaction::fields::{
1414 ContractAddressSalt ,
1515 Fee ,
1616 PaymasterData ,
17+ Proof ,
1718 ProofFacts ,
1819 Tip ,
1920 TransactionSignature ,
@@ -122,6 +123,7 @@ auto_impl_get_test_instance! {
122123 pub nonce_data_availability_mode: DataAvailabilityMode ,
123124 pub fee_data_availability_mode: DataAvailabilityMode ,
124125 pub proof_facts: ProofFacts ,
126+ pub proof: Proof ,
125127 }
126128 pub enum TransactionVersion0 {
127129 Version0 = 0 ,
Original file line number Diff line number Diff line change 11#![ allow( clippy:: unwrap_used) ]
2+ #![ recursion_limit = "256" ]
23#[ cfg( test) ]
34mod precision_test;
45
@@ -122,6 +123,7 @@ use starknet_api::transaction::fields::{
122123 ContractAddressSalt ,
123124 Fee ,
124125 PaymasterData ,
126+ Proof ,
125127 ProofFacts ,
126128 Resource ,
127129 ResourceBounds ,
@@ -427,7 +429,6 @@ pub trait GetTestInstance: Sized {
427429
428430auto_impl_get_test_instance ! {
429431 pub struct AccountDeploymentData ( pub Vec <Felt >) ;
430- pub struct ProofFacts ( pub Vec <Felt >) ;
431432 pub struct AllResourceBounds {
432433 pub l1_gas: ResourceBounds ,
433434 pub l2_gas: ResourceBounds ,
@@ -784,6 +785,8 @@ auto_impl_get_test_instance! {
784785 pub prime: serde_json:: Value ,
785786 pub reference_manager: serde_json:: Value ,
786787 }
788+ pub struct Proof ( pub Arc <Vec <u32 >>) ;
789+ pub struct ProofFacts ( pub Vec <Felt >) ;
787790 pub struct ReceiptCommitment ( pub StarkHash ) ;
788791 pub enum Resource {
789792 L1Gas = 0 ,
You can’t perform that action at this time.
0 commit comments