diff --git a/go/obsclient/authclient.go b/go/obsclient/authclient.go index a7ee70495c..46ab845e3f 100644 --- a/go/obsclient/authclient.go +++ b/go/obsclient/authclient.go @@ -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" @@ -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{ diff --git a/tools/hardhatdeployer/contract_deployer.go b/tools/hardhatdeployer/contract_deployer.go index bc5c9b921b..cbb56c78d3 100644 --- a/tools/hardhatdeployer/contract_deployer.go +++ b/tools/hardhatdeployer/contract_deployer.go @@ -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" @@ -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, }