Skip to content

Commit

Permalink
ICS721: make changes to ics721 spec based on #629 (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaSripal authored Jul 11, 2022
1 parent fcf8619 commit d42c89d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/app/ics-721-nft-transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@ function onChanOpenInit(
channelIdentifier: Identifier,
counterpartyPortIdentifier: Identifier,
counterpartyChannelIdentifier: Identifier,
version: string) {
version: string) (version: string, err: Error) {
// only unordered channels allowed
abortTransactionUnless(order === UNORDERED)
// assert that version is "ics721-1"
abortTransactionUnless(version === "ics721-1")
// or relayer passed in empty version
abortTransactionUnless(version === "ics721-1" || version === "")
return "ics721-1", nil
}
```

Expand All @@ -228,11 +230,12 @@ function onChanOpenTry(
channelIdentifier: Identifier,
counterpartyPortIdentifier: Identifier,
counterpartyChannelIdentifier: Identifier,
counterpartyVersion: string) {
counterpartyVersion: string) (version: string, err: Error) {
// only unordered channels allowed
abortTransactionUnless(order === UNORDERED)
// assert that version is "ics721-1"
abortTransactionUnless(counterpartyVersion === "ics721-1")
return "ics721-1", nil
}
```

Expand Down

0 comments on commit d42c89d

Please sign in to comment.