Skip to content

Commit

Permalink
test: work around fee estimate issues w/ fixed fee
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Mar 27, 2024
1 parent 1ebcdc1 commit ddaf662
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions starknet-accounts/tests/single_owner_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ async fn can_execute_eth_transfer_inner<P: Provider + Send + Sync>(provider: P,
FieldElement::ZERO,
],
}])
.max_fee(FieldElement::from_dec_str("1000000000000000000").unwrap())
.send()
.await
.unwrap();
Expand Down Expand Up @@ -321,6 +322,7 @@ async fn can_declare_cairo1_contract_inner<P: Provider + Send + Sync>(provider:
Arc::new(flattened_class),
FieldElement::from_hex_be(&hashes.compiled_class_hash).unwrap(),
)
.max_fee(FieldElement::from_dec_str("1000000000000000000").unwrap())
.send()
.await
.unwrap();
Expand Down Expand Up @@ -366,9 +368,7 @@ async fn can_declare_cairo0_contract_inner<P: Provider + Send + Sync>(provider:

let result = account
.declare_legacy(Arc::new(contract_artifact))
// There seems to be a fee estimation issue with `pathfinder`
// https://github.com/eqlabs/pathfinder/issues/1372
.fee_estimate_multiplier(2.0)
.max_fee(FieldElement::from_dec_str("1000000000000000000").unwrap())
.send()
.await
.unwrap();
Expand Down
1 change: 1 addition & 0 deletions starknet-contract/tests/contract_deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ async fn can_deploy_contract_to_alpha_sepolia() {
FieldElement::from_bytes_be(&salt_buffer).unwrap(),
true,
)
.max_fee(FieldElement::from_dec_str("1000000000000000000").unwrap())
.send()
.await;

Expand Down

0 comments on commit ddaf662

Please sign in to comment.