Skip to content

Commit

Permalink
Remove gasLimit and gas fields from txrelayer call (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt authored Dec 8, 2022
1 parent 12a0227 commit dc17eaf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions txrelayer/txrelayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package txrelayer
import (
"errors"
"fmt"
"math/big"
"sync"
"time"

Expand Down Expand Up @@ -64,11 +63,9 @@ func NewTxRelayer(opts ...TxRelayerOption) (TxRelayer, error) {
// Call executes a message call immediately without creating a transaction on the blockchain
func (t *TxRelayerImpl) Call(from ethgo.Address, to ethgo.Address, input []byte) (string, error) {
callMsg := &ethgo.CallMsg{
From: from,
To: &to,
Data: input,
GasPrice: defaultGasPrice,
Gas: big.NewInt(defaultGasLimit),
From: from,
To: &to,
Data: input,
}

return t.client.Eth().Call(callMsg, ethgo.Pending)
Expand Down

0 comments on commit dc17eaf

Please sign in to comment.