Skip to content

Duplicate entried in getAccountInbound #2090

@friedger

Description

@friedger

Describe the bug
When calling getAccountInbound, the result contains duplicate entries that only differ by stx-transfer and stx-transfer-memo

To Reproduce
Steps to reproduce the behavior:

  1. call await accountsApi.getAccountInbound({principal: "SP2ZNPXGZ8S4GE568QSCF66PT02BZ63Y4W3Y7BHNZ", });
  2. check result for stx-transfer and stx-transfer-memo. e.g.
 {
    sender: 'SP3KJBWTS3K562BF5NXWG5JC8W90HEG7WPYH5B97X',
    amount: '4904900750',
    memo: '0x72657761726473203839000000000000000000000000000000000000000000000000',
    block_height: 160523,
    tx_id: '0x23c178d6f20a7772f6fda3c2c35e6bb4d90e9fadf87d09457bc9d9eb585b5790',
    transfer_type: 'stx-transfer',
    tx_index: 45
  },
  {
    sender: 'SP3KJBWTS3K562BF5NXWG5JC8W90HEG7WPYH5B97X',
    amount: '4904900750',
    memo: '0x72657761726473203839000000000000000000000000000000000000000000000000',
    block_height: 160523,
    tx_id: '0x23c178d6f20a7772f6fda3c2c35e6bb4d90e9fadf87d09457bc9d9eb585b5790',
    transfer_type: 'stx-transfer-memo',
    tx_index: 45
  },

Expected behavior
Only one stx transfer event should be listed

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions