Skip to content

Commit

Permalink
Skip address from confing on defined addr
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Sep 22, 2023
1 parent b304039 commit 942394a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions relayer/rpc_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,14 @@ func (r *RpcRelayer) GetNonce(ctx context.Context, walletConfig core.WalletConfi
// responds with the native transaction hash (*types.Transaction), which means the relayer has submitted the transaction
// request to the network. Clients can use WaitReceipt to wait until the metaTxnID has been mined.
func (r *RpcRelayer) Relay(ctx context.Context, signedTxs *sequence.SignedTransactions) (sequence.MetaTxnID, *types.Transaction, ethtxn.WaitReceipt, error) {
walletAddress, err := sequence.AddressFromWalletConfig(signedTxs.WalletConfig, signedTxs.WalletContext)
if err != nil {
return "", nil, nil, err
walletAddress := signedTxs.WalletAddress
var err error

if walletAddress == (common.Address{}) {
walletAddress, err = sequence.AddressFromWalletConfig(signedTxs.WalletConfig, signedTxs.WalletContext)
if err != nil {
return "", nil, nil, err
}
}

to, execdata, err := sequence.EncodeTransactionsForRelaying(
Expand Down

0 comments on commit 942394a

Please sign in to comment.