Skip to content

Commit e01d1e1

Browse files
starknet_api: add proof_facts to invoke tx args (#10656)
1 parent 40cd400 commit e01d1e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/starknet_api/src/test_utils/invoke.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub struct InvokeTxArgs {
5050
pub nonce: Nonce,
5151
pub only_query: bool,
5252
pub tx_hash: TransactionHash,
53-
// TODO(AvivG): add proof_facts for testing.
53+
pub proof_facts: ProofFacts,
5454
}
5555

5656
impl Default for InvokeTxArgs {
@@ -70,6 +70,7 @@ impl Default for InvokeTxArgs {
7070
nonce: Nonce::default(),
7171
only_query: false,
7272
tx_hash: TransactionHash::default(),
73+
proof_facts: ProofFacts::default(),
7374
}
7475
}
7576
}
@@ -122,8 +123,7 @@ pub fn invoke_tx(invoke_args: InvokeTxArgs) -> InvokeTransaction {
122123
fee_data_availability_mode: invoke_args.fee_data_availability_mode,
123124
paymaster_data: invoke_args.paymaster_data,
124125
account_deployment_data: invoke_args.account_deployment_data,
125-
// TODO(AvivG): Get proof_facts from invoke_args once supported.
126-
proof_facts: ProofFacts::default(),
126+
proof_facts: invoke_args.proof_facts,
127127
})
128128
} else {
129129
panic!("Unsupported transaction version: {:?}.", invoke_args.version)

0 commit comments

Comments
 (0)