Skip to content

Commit 209f0bd

Browse files
authored
Check default case for walletconfig in relay (#298)
1 parent b81cdb4 commit 209f0bd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

relayer/rpc_relayer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ func (r *RpcRelayer) Relay(ctx context.Context, signedTxs *sequence.SignedTransa
166166
signedTxs.Nonce,
167167
signedTxs.Signature,
168168
)
169+
default:
170+
return "", nil, nil, fmt.Errorf("unknown wallet config type: %T", signedTxs.WalletConfig)
169171
}
170172
if err != nil {
171173
return "", nil, nil, err

transactions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (t Transactions) Payload(to common.Address, chainID *big.Int, space, nonce
229229
if tx.IsBundle() {
230230
var space_, nonce_ *big.Int
231231
if tx.Nonce != nil {
232-
space, nonce = DecodeNonce(tx.Nonce)
232+
space_, nonce_ = DecodeNonce(tx.Nonce)
233233
}
234234

235235
subPayload, err := tx.Transactions.Payload(tx.To, chainID, space_, nonce_)

0 commit comments

Comments
 (0)