Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Oct 12, 2024
1 parent 706fe81 commit 3f029d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/katana/rpc/rpc/src/starknet/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ impl<EF: ExecutorFactory> StarknetApi<EF> {

let tx = tx.into_tx_with_chain_id(this.inner.backend.chain_spec.id);
let tx = ExecutableTxWithHash::new(ExecutableTx::Invoke(tx));
let hash =
this.inner.pool.add_transaction(tx).inspect_err(|e| println!("Error: {:?}", e))?;
let hash = this.inner.pool.add_transaction(tx)?;

Ok(hash.into())
})
Expand Down
2 changes: 1 addition & 1 deletion crates/katana/rpc/rpc/tests/starknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ async fn send_txs_with_insufficient_fee(
// in no fee mode, setting the max fee (which translates to the tx run resources) lower
// than the amount required would result in a validation failure. due to insufficient
// resources.
assert_starknet_err!(res.unwrap_err(), StarknetError::ValidationFailure(_));
assert_starknet_err!(dbg!(res).unwrap_err(), StarknetError::ValidationFailure(_));
} else {
assert_starknet_err!(res.unwrap_err(), StarknetError::InsufficientMaxFee);
}
Expand Down

0 comments on commit 3f029d8

Please sign in to comment.