Skip to content

Commit

Permalink
fix: use port ID and channel ID as inputs of the escrow address gener…
Browse files Browse the repository at this point in the history
…ation (#1079)
  • Loading branch information
crodriguezvega authored Feb 6, 2024
1 parent e3733a0 commit 2f8725d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/app/ics-020-fungible-token-transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function onChanOpenInit(
// as the version for this channel
abortTransactionUnless(version === "ics20-1" || version === "")
// allocate an escrow address
channelEscrowAddresses[channelIdentifier] = newAddress()
channelEscrowAddresses[channelIdentifier] = newAddress(portIdentifier, channelIdentifier)
return "ics20-1", nil
}
```
Expand All @@ -154,7 +154,7 @@ function onChanOpenTry(
// assert that version is "ics20-1"
abortTransactionUnless(counterpartyVersion === "ics20-1")
// allocate an escrow address
channelEscrowAddresses[channelIdentifier] = newAddress()
channelEscrowAddresses[channelIdentifier] = newAddress(portIdentifier, channelIdentifier)
// return version that this chain will use given the
// counterparty version
return "ics20-1", nil
Expand Down

0 comments on commit 2f8725d

Please sign in to comment.