Binding a variable with a sequence of expressions

I’ve made an update to the code example, the otherValue sets, however, the floatingRate from the setInterestRate does not:

Scenario execution failed on commit at Test.Event:118:28:

Aborted: expecting 'floatingRateDefinition' to be set

Stack trace:

- get (Org.Isda.Cdm.EventSpecificationModule.Impl.Utils:39:18)
- get (Org.Isda.Cdm.EventSpecificationModule.Impl.Utils:38:1)
- populatePCP (Org.Isda.Cdm.EventSpecificationModule.Impl.Contract.Payout.InterestRatePayout:166:13)
- populatePCP (Org.Isda.Cdm.EventSpecificationModule.Impl.Contract.Payout.InterestRatePayout:166:9)
- populatePCP (Org.Isda.Cdm.EventSpecificationModule.Impl.Contract.Payout.InterestRatePayout:131:72)
- $u002e (GHC.Base:53:11)
- map (GHC.Base:41:25)
- map (GHC.Base:41:15)
- populatePCP (Org.Isda.Cdm.EventSpecificationModule.Impl.Contract.Payout.InterestRatePayout:131:67)
- populatePCP (Org.Isda.Cdm.EventSpecificationModule.Impl.Contract.Payout.InterestRatePayout:131:58)
- populatePCP (Org.Isda.Cdm.EventSpecificationModule.Impl.Contract.Payout.InterestRatePayout:130:1)
- map (GHC.Base:41:25)
- map (GHC.Base:41:15)
- buildEvents (Org.Isda.Cdm.EventSpecificationModule.Impl.Contract.Payout.InterestRatePayout:61:7)
- $$c$u003e$u003e$u003d (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:49:34)
- $$c$u003e$u003e$u003d (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:48:23)
- $$cfmap (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:37:47)
- $$cfmap (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:37:24)
- $$c$u003c$u002a$u003e (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:42:47)
- $$c$u003c$u002a$u003e (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:42:23)
- $$cfmap (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:37:47)
- $$cfmap (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:37:24)
- $$c$u003e$u003e$u003d (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:48:46)
- $$c$u003e$u003e$u003d (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:48:23)
- $$cfmap (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:37:47)
- $$cfmap (Org.Isda.Cdm.EventSpecificationModule.Types.ReferenceData.Fetch:37:24)
- buildDerivedEvents (Org.Isda.Cdm.EventSpecificationModule.EventBuilder.Derived:37:41)
- buildDerivedEvents (Org.Isda.Cdm.EventSpecificationModule.EventBuilder.Derived:37:1)
- flip (DA.Internal.Prelude:369:1)
- $$cfmap (DA.Internal.LF:129:33)
- $$cfmap (DA.Internal.LF:129:22)
1 Like