rippled icon indicating copy to clipboard operation
rippled copied to clipboard

Transactions where NFTs are burned or modified by the issuer do not appear in the owner's `account_tx`

Open tequdev opened this issue 9 months ago • 0 comments

Issue Description

As the title says

This issue does not occur if there is a change in Onwer’s OwnerCount.

Steps to Reproduce

import { Client, NFTokenMintFlags, Wallet } from 'xrpl'

const main = async () => {
  const client = new Client('wss://s.devnet.rippletest.net:51233/')
  const issuer = Wallet.generate()
  const user = Wallet.generate()
  console.log(issuer.address)
  console.log(user.address)
  await client.connect()
  await client.fundWallet(issuer)
  await client.fundWallet(user)

  const mint1 = await client.submitAndWait(
    {
      TransactionType: 'NFTokenMint',
      Account: issuer.address,
      NFTokenTaxon: 1,
      Flags: NFTokenMintFlags.tfBurnable + NFTokenMintFlags.tfTransferable,
      Destination: user.address,
      Amount: '0',
    },
    { wallet: issuer },
  )

  const mint2 = await client.submitAndWait(
    {
      TransactionType: 'NFTokenMint',
      Account: issuer.address,
      NFTokenTaxon: 1,
      Flags: NFTokenMintFlags.tfBurnable + NFTokenMintFlags.tfTransferable,
      Destination: user.address,
      Amount: '0',
    },
    { wallet: issuer },
  )

  await client.submitAndWait(
    {
      TransactionType: 'NFTokenAcceptOffer',
      Account: user.address,
      NFTokenSellOffer: mint1.result.meta.offer_id,
    },
    { wallet: user },
  )
  await client.submitAndWait(
    {
      TransactionType: 'NFTokenAcceptOffer',
      Account: user.address,
      NFTokenSellOffer: mint2.result.meta.offer_id,
    },
    { wallet: user },
  )

  await client.submitAndWait(
    {
      TransactionType: 'NFTokenBurn',
      Account: issuer.address,
      Owner: user.address,
      NFTokenID: mint1.result.meta.nftoken_id,
    },
    { wallet: issuer },
  )

  await client.disconnect()
}

main()

Expected Result

NFTokenBurn/NFTokenModify will be showed in account_tx.

Actual Result

Not showed

Environment

rippled: 2.4.0

Supporting Files

NFTokenBurn

issuer: https://devnet.xrpl.org/accounts/rKw9GwKhqZAS17vRAiCD2S3kkiVjZN2jyf owner: https://devnet.xrpl.org/accounts/rGSZvHvGRks3AjidpbpXuTfEXxi1GgL5Mt

NFTokenModify

nft_history: https://devnet.xrpl.org/nft/0018000086ED8697D3E9465B49C902D8C1A46D10D653EEA0B7EEDB0F001F1D74 owner: https://devnet.xrpl.org/transactions/23697BDE248C0F12A8900D49B052E5CF2D860E27069215D5FC4357AD966E75C6

tequdev avatar Apr 20 '25 14:04 tequdev