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

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Santev committed Feb 2, 2024
1 parent e02386a commit 31df31f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions state/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func TestExecutor_apply_FeeDistribution(t *testing.T) {
}
}

return &types.Transaction{
tx := &types.Transaction{
From: *from,
Value: value,
Type: txType,
Expand All @@ -197,6 +197,12 @@ func TestExecutor_apply_FeeDistribution(t *testing.T) {
To: &to,
Nonce: nonce,
}

if txType == types.StateTx {
tx.Gas = 7000000
}

return tx
}

// Define test cases
Expand Down Expand Up @@ -319,7 +325,7 @@ func TestExecutor_apply_SystemAddrBalanceInject(t *testing.T) {
Value: value,
Type: txType,
GasPrice: big.NewInt(0),
Gas: 1000000,
Gas: 7000000,
To: to,
Nonce: nonce,
}
Expand Down Expand Up @@ -392,7 +398,7 @@ func TestExecutor_Apply(t *testing.T) {
Value: value,
Type: txType,
GasPrice: big.NewInt(0),
Gas: 1000000,
Gas: 7000000,
To: toRevert,
Nonce: 0,
Input: input,
Expand All @@ -409,7 +415,7 @@ func TestExecutor_Apply(t *testing.T) {
Value: value,
Type: txType,
GasPrice: big.NewInt(0),
Gas: 1000000,
Gas: 7000000,
To: &to,
Nonce: 1,
},
Expand Down

0 comments on commit 31df31f

Please sign in to comment.