Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(relayer): 3m => 1.5 gas #13494

Merged
merged 2 commits into from
Mar 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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