From cd53c4f66cfb4a2af16ed9228256740488d6dcc0 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Tue, 25 Jan 2022 17:54:18 -0800 Subject: [PATCH] NFTokenCancelOffer: fix example & touch up formatting for TokenOffers field --- .../transaction-types/nftokencanceloffer.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/content/references/protocol-reference/transactions/transaction-types/nftokencanceloffer.md b/content/references/protocol-reference/transactions/transaction-types/nftokencanceloffer.md index db3d0701ab..3cb2b3d0b8 100644 --- a/content/references/protocol-reference/transactions/transaction-types/nftokencanceloffer.md +++ b/content/references/protocol-reference/transactions/transaction-types/nftokencanceloffer.md @@ -17,7 +17,9 @@ The `NFTokenCancelOffer` transaction can be used to cancel existing token offers { "TransactionType": "NFTokenCancelOffer", "Account": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX", - "TokenIDs": "000100001E962F495F07A990F4ED55ACCFEEF365DBAA76B6A048C0A200000007" + "TokenOffers": [ + "9C92E061381C1EF37A8CDE0E8FC35188BFC30B1883825042A64309AC09F4C36D" + ] } ``` @@ -34,11 +36,12 @@ This transaction removes the listed `NFTokenOffer` object from the ledger, if pr {% include '_snippets/tx-fields-intro.md' %} -| Field | JSON Type | [Internal Type][] | Description | -|:----------------|:----------|:------------------|:---------------------------| -| TransactionType | String | UInt16 | NFTokenCancelOffer transaction type. The integer identifier is 28. | -| TokenOffers | Array | VECTOR256 | An array of TokenID objects, each identifying the NFTokenOffer object that should be cancelled by this transaction. It is an error if an entry in this list points to an object that is not an [NFTokenOffer object][]. It is not an error if an entry in this list points to an object that does not exist. | +| Field | JSON Type | [Internal Type][] | Description | +|:------------------|:----------|:------------------|:-------------------------| +| `TransactionType` | String | UInt16 | NFTokenCancelOffer transaction type. The integer identifier is 28. | +| `TokenOffers` | Array | VECTOR256 | An array of IDs of the token offers to cancel. Each entry must be a different [object ID](ledger-object-ids.html) of an [NFTokenOffer object][]; the transaction is invalid if the array contains duplicate entries. | +The transaction can succeed even if one or more of the IDs in the `TokenOffers` field do not refer to objects that currently exist in the ledger. (For example, those token offers may have been taken already.) The transaction fails with an error if one of the IDs in points to an object that does exist, but is not a [NFTokenOffer object][].