Skip to content

Commit

Permalink
UTs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Feb 25, 2024
1 parent 3b7ea42 commit 397ef42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
16 changes: 0 additions & 16 deletions e2e/txpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"crypto/ecdsa"
"errors"
"math/big"
"os"
"path/filepath"
"testing"
"time"

Expand All @@ -26,20 +24,6 @@ import (
"github.com/stretchr/testify/assert"
)

func init() {
wd, err := os.Getwd()
if err != nil {
return
}

parent := filepath.Dir(wd)
wd = filepath.Join(parent, "artifacts/polygon-edge")
os.Setenv("EDGE_BINARY", wd)
os.Setenv("E2E_TESTS", "true")
os.Setenv("E2E_LOGS", "true")
os.Setenv("E2E_LOG_LEVEL", "debug")
}

var (
oneEth = framework.EthToWei(1)
signer = crypto.NewSigner(chain.AllForksEnabled.At(0), 100)
Expand Down
2 changes: 2 additions & 0 deletions gasprice/gasprice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func TestGasHelper_MaxPriorityFeePerGas(t *testing.T) {
To: &types.ZeroAddress,
GasTipCap: ethgo.Gwei(uint64(rand.Intn(200))),
GasFeeCap: ethgo.Gwei(uint64(rand.Intn(200) + 200)),
ChainID: big.NewInt(backend.Config().ChainID),
})

tx, err := signer.SignTx(tx, senderKey)
Expand Down Expand Up @@ -224,6 +225,7 @@ func createTestTxs(t *testing.T, backend *backendMock, numOfTxsPerBlock, txCap i
To: &types.ZeroAddress,
GasTipCap: ethgo.Gwei(uint64(rand.Intn(txCap))),
GasFeeCap: ethgo.Gwei(uint64(rand.Intn(txCap) + txCap)),
ChainID: big.NewInt(backend.Config().ChainID),
})

tx, err := signer.SignTx(tx, senderKey)
Expand Down
6 changes: 4 additions & 2 deletions jsonrpc/testsuite/block-with-txn-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"blockHash": "0x7935c790bdff1ec20912f28c9f7722eed41837c478a1f9ce0dc49f5d4a2d7c88",
"blockNumber": "0x14",
"transactionIndex": "0x0",
"type": "0x0"
"type": "0x0",
"chainId": "0x7fffffffffffffef"
},
{
"nonce": "0x0",
Expand All @@ -50,7 +51,8 @@
"blockHash": "0x7935c790bdff1ec20912f28c9f7722eed41837c478a1f9ce0dc49f5d4a2d7c88",
"blockNumber": "0x14",
"transactionIndex": "0x1",
"type": "0x0"
"type": "0x0",
"chainId": "0x7fffffffffffffef"
}
],
"uncles": [],
Expand Down

0 comments on commit 397ef42

Please sign in to comment.