Skip to content

Commit

Permalink
Remove add
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Sep 27, 2023
1 parent baaddb7 commit 2c1341d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/difference/core/quint_model/ccv.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ module CCV {
Err("Received maturation is not for the oldest sentVSCPacket")
} else {
val currentReceivedMaturations = currentState.providerState.receivedMaturations
val newReceivedMaturations = currentReceivedMaturations.add(packet)
val newReceivedMaturations = currentReceivedMaturations.union(Set(packet))
val newProviderState = currentState.providerState.with(
"receivedMaturations", newReceivedMaturations
)
Expand Down Expand Up @@ -742,10 +742,6 @@ module CCV {
// ccv timeout contains only consumers and provider, no other chains
run CcvTimeoutSubsetTest =
CcvTimeout.keys().forall(chain => ConsumerChains.contains(chain) or chain == PROVIDER_CHAIN)

// unbonding period contains consumers and provider, no other chains
def UnbondingPeriodInv = UnbondingPeriodPerChain.keys() == ConsumerChains.add(PROVIDER_CHAIN)


}

Expand Down Expand Up @@ -844,7 +840,7 @@ module CCVDefaultStateMachine {
import extraSpells.* from "./extraSpells"

pure val consumerChains = Set("consumer1", "consumer2", "consumer3")
pure val chains = consumerChains.add(PROVIDER_CHAIN)
pure val chains = consumerChains.union(Set(PROVIDER_CHAIN))
pure val unbondingPeriods = chains.mapBy(chain => 2 * Week)
pure val ccvTimeouts = chains.mapBy(chain => 3 * Week)

Expand Down

0 comments on commit 2c1341d

Please sign in to comment.