Skip to content

Commit 27111c3

Browse files
committed
Update cardano-rpc with PlutusV4
1 parent c2aa9bc commit 27111c3

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

cardano-rpc/proto/utxorpc/v1alpha/cardano/cardano.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ message Script {
4040
bytes plutus_v1 = 2; // Plutus V1 script.
4141
bytes plutus_v2 = 3; // Plutus V2 script.
4242
bytes plutus_v3 = 4; // Plutus V3 script.
43+
bytes plutus_v4 = 5; // Plutus V3 script.
4344
}
4445
}
4546

cardano-rpc/src/Cardano/Rpc/Server/Internal/Orphans.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ instance Inject (ReferenceScript era) (Proto UtxoRpc.Script) where
8686
defMessage & #plutusV2 .~ serialiseToRawBytes ps
8787
PlutusScript PlutusScriptV3 ps ->
8888
defMessage & #plutusV3 .~ serialiseToRawBytes ps
89+
PlutusScript PlutusScriptV4 ps ->
90+
defMessage & #plutusV4 .~ serialiseToRawBytes ps
8991

9092
instance IsCardanoEra era => Inject (UTxO era) [Proto UtxoRpc.AnyUtxoData] where
9193
inject utxo =

cardano-rpc/test/cardano-rpc-test/Test/Cardano/Rpc/ProtocolParameters.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ hprop_roundtrip_protocol_parameters = H.property $ do
3535
pp <- fmap unLedgerProtocolParameters . H.forAll $ genValidProtocolParameters (convert era)
3636
let costModels = L.costModelsValid $ pp ^. L.ppCostModelsL
3737
mCms = map (`M.lookup` costModels) [minBound .. maxBound]
38-
3938
nonEmptyCostModels =
4039
fromList . flip mapMaybe mCms $ \mCm ->
4140
mCm >>= \cm ->

0 commit comments

Comments
 (0)