Skip to content

Commit

Permalink
fix(relayer): 3m => 1.5 gas (#13494)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Mar 28, 2023
1 parent dfac2c4 commit 02a582e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/relayer/message/process_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/hex"
"fmt"
"math/big"
"strings"

"github.com/ethereum/go-ethereum/accounts/abi"
Expand Down Expand Up @@ -161,7 +160,7 @@ func (p *Processor) sendProcessMessageCall(
// we can get unable to estimet gas for contract deployments within the contract code.
// if we get an error or the gas is 0, lets manual set high gas limit and ignore error,
// and try to actually send.
auth.GasLimit = 3000000
auth.GasLimit = 1500000
}

if bool(p.profitableOnly) {
Expand All @@ -176,8 +175,6 @@ func (p *Processor) sendProcessMessageCall(
return nil, errors.Wrap(err, "p.destBridge.SuggestGasPrice")
}

gasPrice = gasPrice.Mul(gasPrice, big.NewInt(2))

auth.GasPrice = gasPrice

// process the message on the destination bridge.
Expand Down

0 comments on commit 02a582e

Please sign in to comment.