Skip to content

Commit

Permalink
FIX: Build after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmihaic committed Apr 29, 2022
1 parent c1f8aec commit a98dcee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions process/block/postprocess/feeHandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestFeeHandler_RevertFees(t *testing.T) {
func TestFeeHandler_CompleteRevertFeesUserTxs(t *testing.T) {
t.Parallel()

feeHandler, _ := postprocess.NewFeeAccumulator()
feeHandler := postprocess.NewFeeAccumulator()
userTxHashes := [][]byte{[]byte("txHash1"), []byte("txHash2"), []byte("txHash3")}
originalTxHashes := [][]byte{[]byte("origTxHash1"), []byte("origTxHash2"), []byte("origTxHash3")}

Expand All @@ -110,7 +110,7 @@ func TestFeeHandler_PartialRevertFeesUserTxs(t *testing.T) {
originalTxHashes := [][]byte{[]byte("origTxHash1"), []byte("origTxHash2"), []byte("origTxHash3"), []byte("userTxHash4")}

t.Run("revert partial originalTxs", func(t *testing.T) {
feeHandler, _ := postprocess.NewFeeAccumulator()
feeHandler := postprocess.NewFeeAccumulator()
feeHandler.ProcessTransactionFeeRelayedUserTx(big.NewInt(1000), big.NewInt(100), userTxHashes[0], originalTxHashes[0])
feeHandler.ProcessTransactionFeeRelayedUserTx(big.NewInt(100), big.NewInt(10), userTxHashes[1], originalTxHashes[1])
feeHandler.ProcessTransactionFeeRelayedUserTx(big.NewInt(10), big.NewInt(1), userTxHashes[2], originalTxHashes[2])
Expand All @@ -124,7 +124,7 @@ func TestFeeHandler_PartialRevertFeesUserTxs(t *testing.T) {
require.Equal(t, big.NewInt(200), devFees)
})
t.Run("revert all userTxs", func(t *testing.T) {
feeHandler, _ := postprocess.NewFeeAccumulator()
feeHandler := postprocess.NewFeeAccumulator()
feeHandler.ProcessTransactionFeeRelayedUserTx(big.NewInt(1000), big.NewInt(100), userTxHashes[0], originalTxHashes[0])
feeHandler.ProcessTransactionFeeRelayedUserTx(big.NewInt(100), big.NewInt(10), userTxHashes[1], originalTxHashes[1])
feeHandler.ProcessTransactionFeeRelayedUserTx(big.NewInt(10), big.NewInt(1), userTxHashes[2], originalTxHashes[2])
Expand All @@ -138,7 +138,7 @@ func TestFeeHandler_PartialRevertFeesUserTxs(t *testing.T) {
require.Equal(t, big.NewInt(200), devFees)
})
t.Run("revert partial userTxs", func(t *testing.T) {
feeHandler, _ := postprocess.NewFeeAccumulator()
feeHandler := postprocess.NewFeeAccumulator()
feeHandler.ProcessTransactionFeeRelayedUserTx(big.NewInt(1000), big.NewInt(100), userTxHashes[0], originalTxHashes[0])
feeHandler.ProcessTransactionFeeRelayedUserTx(big.NewInt(100), big.NewInt(10), userTxHashes[1], originalTxHashes[1])
feeHandler.ProcessTransactionFeeRelayedUserTx(big.NewInt(10), big.NewInt(1), userTxHashes[2], originalTxHashes[2])
Expand Down

0 comments on commit a98dcee

Please sign in to comment.