Skip to content

Commit

Permalink
fix bug where used txFromAddress instead of txRequestFromAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
poopoothegorilla committed Feb 8, 2024
1 parent 19fbe95 commit dac6114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/txmgr/inmemory_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (ms *InMemoryStore[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE]) Creat

ms.addressStatesLock.RLock()
defer ms.addressStatesLock.RUnlock()
as, ok := ms.addressStates[tx.FromAddress]
as, ok := ms.addressStates[txRequest.FromAddress]
if !ok {
return tx, fmt.Errorf("create_transaction: %w", ErrAddressNotFound)
}
Expand Down

0 comments on commit dac6114

Please sign in to comment.