@@ -42,17 +42,17 @@ initState' : UTxO
4242initState' = fromList' (createInitUtxoState 5 startValue)
4343
4444
45- data Tx' : Set where
45+ data Tx' : Set where
4646 start : ℕ → Value → Q.ℚ → Tx'
4747 close : ℕ → Tx'
4848 updatetx : ℕ → Value → Q.ℚ → Tx'
4949 exchange : ℕ → Value → Tx'
50-
50+
5151
5252makeTx : UTxOState → PlutusScript → Tx' → (id : ℕ) → Maybe Tx
5353makeTx s script (start w v r) id = just (startTx id w 999 v r script)
5454makeTx s script (close w) id = makeCloseTx id s script w
55- makeTx s script (updatetx w v r) id = makeUpdateTx id s script w v r
55+ makeTx s script (updatetx w v r) id = makeUpdateTx id s script w v r
5656makeTx s script (exchange w v) id = makeExchangeTx id s script w v
5757
5858evalTransanctions : UTxOEnv → ComputationResult String UTxOState → List Tx' → ℕ → ComputationResult String UTxOState
@@ -75,7 +75,7 @@ evalTransanctionsW env (success s) (tx' ∷ txs') id =
7575 maybe
7676 (λ tx → evalTransanctions
7777 initEnv
78- (UTXO-stepW initEnv s tx)
78+ (UTXO-step initEnv s tx)
7979 txs'
8080 (suc id))
8181 (failure "failed to generate tx" )
@@ -105,7 +105,7 @@ validTrace = start 5 (adaValueOf 80000000) rate
105105
106106validTrace2 : List Tx'
107107validTrace2 = start 5 (adaValueOf 8000000000 ) rate
108- ∷ exchange 1 (adaValueOf 70000000 )
108+ ∷ exchange 1 (adaValueOf 70000000 )
109109 ∷ []
110110
111111
@@ -123,7 +123,7 @@ opaque
123123
124124 evalValidTrace : ComputationResult String UTxOState
125125 evalValidTrace = evalTransanctionsW initEnv (success ⟦ initState' , 0 , ∅ , 0 ⟧ᵘ) validTrace 6
126-
126+
127127 evalValidTrace2 : ComputationResult String UTxOState
128128 evalValidTrace2 = evalTransanctionsW initEnv (success ⟦ initState' , 0 , ∅ , 0 ⟧ᵘ) validTrace2 6
129129
@@ -137,4 +137,4 @@ opaque
137137 _ = refl
138138
139139 _ : isSuccess evalFailingTrace ≡ false
140- _ = refl
140+ _ = refl
0 commit comments