Skip to content

Commit

Permalink
Test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Jan 9, 2024
1 parent 040433e commit 4424153
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion go/obsclient/authclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth/filters"
"github.com/ethereum/go-ethereum/params"
"github.com/ten-protocol/go-ten/go/common"
"github.com/ten-protocol/go-ten/go/common/viewingkey"
"github.com/ten-protocol/go-ten/go/responses"
Expand Down Expand Up @@ -190,7 +191,7 @@ func (ac *AuthObsClient) EstimateGasAndGasPrice(txData types.TxData) types.TxDat

gasPrice, err := ac.GasPrice(context.Background())
if err != nil {
gasPrice = big.NewInt(1)
gasPrice = big.NewInt(params.InitialBaseFee)
}

return &types.LegacyTx{
Expand Down
5 changes: 3 additions & 2 deletions tools/hardhatdeployer/contract_deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/params"
"github.com/ten-protocol/go-ten/go/common/constants"
"github.com/ten-protocol/go-ten/go/common/retry"
"github.com/ten-protocol/go-ten/go/wallet"
Expand Down Expand Up @@ -91,8 +92,8 @@ func (cd *contractDeployer) run() (string, error) {

deployContractTx := types.LegacyTx{
Nonce: cd.wallet.GetNonceAndIncrement(),
GasPrice: big.NewInt(1),
Gas: uint64(5_000_000),
GasPrice: big.NewInt(params.InitialBaseFee),
Gas: uint64(500_000_000),
Data: cd.contractCode,
}

Expand Down

0 comments on commit 4424153

Please sign in to comment.