Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 committed Oct 2, 2023
1 parent d1dd306 commit 6e12f7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zkevm-circuits/src/evm_circuit/execution/invalid_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ mod test {
// total cost = 30000 * 2 gwei = 6 * 10^13

// Enough balance but not enough gas limit
let balance = gwei(1) /10000; //Word::from(500); // < total cost
let balance = gwei(1) /100000; // < total cost
let tx_gas_limit = Word::from(30000); // > intrinsic gas
let gas_price = gwei(2);

Expand Down Expand Up @@ -380,14 +380,14 @@ mod test {
None,
|accs| {
accs[0].address(to).balance(balance);
accs[1].address(from).balance(balance).nonce(1);
accs[1].address(from).balance(balance);
},
|mut txs, _| {
// Work around no payment to the coinbase address
txs[0]
.to(to)
.from(from)
.nonce(2)
.nonce(1)
.gas_price(gwei(1))
.gas(tx_gas_limit)
.enable_invalid_tx(true);
Expand Down

0 comments on commit 6e12f7e

Please sign in to comment.