Skip to content

Commit df6726a

Browse files
Require all scripts to have a cost model
1 parent ed12e84 commit df6726a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Ledger/Conway/Conformance/Utxow.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ data _⊢_⇀⦇_,UTXOW⦈_ where
5353
∙ neededScriptHashes - refScriptHashes ≡ᵉ witsScriptHashes
5454
∙ inputsDataHashes ⊆ txdatsHashes
5555
∙ txdatsHashes ⊆ inputsDataHashes ∪ outputsDataHashes ∪ refInputsDataHashes
56-
∙ L.languages tx utxo ⊆ L.allowedLanguages tx utxo
56+
∙ L.languages tx utxo ⊆ dom (PParams.costmdls (PParamsOf Γ)) ∩ L.allowedLanguages tx utxo
5757
∙ txADhash ≡ map hash txAD
5858
∙ Γ ⊢ s ⇀⦇ tx ,UTXO⦈ s'
5959
────────────────────────────────

src/Ledger/Conway/Conformance/Utxow/Properties.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ open import stdlib-meta.Tactic.GenError using (genErrors)
2121
instance
2222
Computational-UTXOW : Computational _⊢_⇀⦇_,UTXOW⦈_ String
2323
Computational-UTXOW = record {Go}
24-
where module Go Γ s tx (let H , ⁇ H? = UTXOW-inductive-premises {tx}{s}) where
24+
where module Go Γ s tx (let H , ⁇ H? = UTXOW-inductive-premises {tx}{s}{Γ}) where
2525

2626
open Computational Computational-UTXO
2727
renaming (computeProof to computeProof'; completeness to completeness')

src/Ledger/Conway/Specification/Utxow.lagda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ data _⊢_⇀⦇_,UTXOW⦈_ : UTxOEnv → UTxOState → Tx → UTxOState → Typ
134134
∙ neededScriptHashes - refScriptHashes ≡ᵉ witsScriptHashes
135135
∙ inputsDataHashes ⊆ txdatsHashes
136136
∙ txdatsHashes ⊆ inputsDataHashes ∪ outputsDataHashes ∪ refInputsDataHashes
137-
∙ languages tx utxo ⊆ allowedLanguages tx utxo
137+
∙ languages tx utxo ⊆ dom (PParams.costmdls (PParamsOf Γ)) ∩ allowedLanguages tx utxo
138138
∙ txADhash ≡ map hash txAD
139139
∙ Γ ⊢ s ⇀⦇ tx ,UTXO⦈ s'
140140
────────────────────────────────

src/Ledger/Conway/Specification/Utxow/Properties/Computational.lagda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ open import Ledger.Conway.Specification.Utxo.Properties.Computational txs abs
2525
instance
2626
Computational-UTXOW : Computational _⊢_⇀⦇_,UTXOW⦈_ String
2727
Computational-UTXOW = record {Go}
28-
where module Go Γ s tx (let H , ⁇ H? = UTXOW-inductive-premises {tx}{s}) where
28+
where module Go Γ s tx (let H , ⁇ H? = UTXOW-inductive-premises {tx}{s}{Γ}) where
2929
3030
open Computational Computational-UTXO
3131
renaming (computeProof to computeProof'; completeness to completeness')

0 commit comments

Comments
 (0)