Skip to content

Commit

Permalink
fix bug in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
poopoothegorilla committed Dec 11, 2023
1 parent a0a1a79 commit 89d1056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/txmgr/address_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func NewAddressState[
return nil, fmt.Errorf("address_state: initialization: %w", err)
}
as.inprogress = tx
if tx.IdempotencyKey != nil {
if tx != nil && tx.IdempotencyKey != nil {
as.idempotencyKeyToTx[*tx.IdempotencyKey] = tx
}

Expand Down

0 comments on commit 89d1056

Please sign in to comment.