Skip to content

Commit e3fe78a

Browse files
committed
make changes to ics721 spec based on #629
1 parent 4dc84a3 commit e3fe78a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

spec/app/ics-721-nft-transfer/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,13 @@ function onChanOpenInit(
212212
channelIdentifier: Identifier,
213213
counterpartyPortIdentifier: Identifier,
214214
counterpartyChannelIdentifier: Identifier,
215-
version: string) {
215+
version: string) (version: string, err: Error) {
216216
// only unordered channels allowed
217217
abortTransactionUnless(order === UNORDERED)
218218
// assert that version is "ics721-1"
219-
abortTransactionUnless(version === "ics721-1")
219+
// or relayer passed in empty version
220+
abortTransactionUnless(version === "ics721-1" || version === "")
221+
return "ics721-1", nil
220222
}
221223
```
222224

@@ -228,11 +230,12 @@ function onChanOpenTry(
228230
channelIdentifier: Identifier,
229231
counterpartyPortIdentifier: Identifier,
230232
counterpartyChannelIdentifier: Identifier,
231-
counterpartyVersion: string) {
233+
counterpartyVersion: string) (version: string, err: Error) {
232234
// only unordered channels allowed
233235
abortTransactionUnless(order === UNORDERED)
234236
// assert that version is "ics721-1"
235237
abortTransactionUnless(counterpartyVersion === "ics721-1")
238+
return "ics721-1", nil
236239
}
237240
```
238241

0 commit comments

Comments
 (0)