Skip to content

Commit

Permalink
bug: await tx committal (#1400)
Browse files Browse the repository at this point in the history
e2e upload/upgrade tx test bug

Co-authored-by: Ahmed Sagdati <[email protected]>
  • Loading branch information
segfault-magnet and Ahmed Sagdati authored May 31, 2024
1 parent e0987f5 commit 623c469
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions e2e/tests/providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,12 +995,9 @@ async fn can_upload_executor_and_trigger_upgrade() -> Result<()> {
wallet.adjust_for_fee(&mut builder, 0).await?;
let tx = builder.build(&provider).await?;

provider.send_transaction(tx).await?;
provider.send_transaction_and_await_commit(tx).await?;
}

// Otherwise we occasionally get `UnknownStateTransactionBytecodeRoot` in CI runs
tokio::time::sleep(std::time::Duration::from_secs(2)).await;

let mut builder =
UpgradeTransactionBuilder::prepare_state_transition_upgrade(root, TxPolicies::default());
wallet.add_witnesses(&mut builder)?;
Expand Down

0 comments on commit 623c469

Please sign in to comment.