Skip to content

Commit

Permalink
nit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega authored Nov 20, 2023
1 parent ebb1bdb commit 6320c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/core/ics-004-channel-and-packet-semantics/UPGRADES.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ function chanUpgradeConfirm(
}

// if both chains are already in flushcomplete we can move to OPEN
if (channel.state === FLUSHCOMPLETE && counterpartyChannelState === FLUSHCOMPLETE) {
if (channel.state == FLUSHCOMPLETE && counterpartyChannelState == FLUSHCOMPLETE) {
openUpgradelHandshake(portIdentifier, channelIdentifier)
module.onChanUpgradeOpen(portIdentifier, channelIdentifier)
}
Expand Down Expand Up @@ -927,7 +927,7 @@ function timeoutChannelUpgrade(
) {
// current channel must have an upgrade that is FLUSHING or FLUSHCOMPLETE
upgrade = provableStore.get(channelUpgradePath(portIdentifier, channelIdentifier))
abortTransactionUnless(upgrade != null)
abortTransactionUnless(upgrade !== null)
channel = provableStore.get(channelPath(portIdentifier, channelIdentifier))
abortTransactionUnless(channel.state === FLUSHING || channel.state === FLUSHCOMPLETE)

Expand Down

0 comments on commit 6320c34

Please sign in to comment.