Skip to content

Commit

Permalink
increase the gas limit on tangle for a simple transfer (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekohex authored Aug 8, 2023
1 parent 16acaf6 commit bffe1ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/txes/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ async fn handle_evm_native_tx<M: Middleware>(
// Craft the tx
let has_signer = provider.is_signer().await;
assert!(has_signer, "Provider must have signer");
let tx = TransactionRequest::new().to(to).value(amount);
let tx = TransactionRequest::new()
.to(to)
.value(amount)
.gas(U256::from(22000u64)); // TODO: Make this configurable

// Broadcast it via the eth_sendTransaction API
let tx_receipt = provider
.send_transaction(tx, None)
.await
Expand Down

0 comments on commit bffe1ea

Please sign in to comment.