IntersectMBO / cardano-api

Cardano API
Apache License 2.0
22 stars 20 forks source link

[BUG] - Script Proposals are removed on transaction build #594

Closed spannercode closed 1 month ago

spannercode commented 1 month ago

Copied from https://github.com/cardanoapi/hardfork-testing/issues/46 reported by @mesudip

Context

cardano-api-9.0.0.0 cardano-api-9.1.0.0

Expected Behavior

txProposalProcedures is set properly when script is not used.

Actual Behavior

When TxBodyContent has txProposalProcedures set with script, Got Resultant transaction has no proposals.

Sample txBodyContent

TxBodyContent {
txIns = [(TxIn "adb8ee9e995afc73a0c0885647516f95fc4b709fde0050e71e2c8e92ea430237" (TxIx 0),BuildTxWith (KeyWitness KeyWitnessForSpending)),(TxIn "c8f96031abcec6d4378c0f910acde1f1fae47e1b890646db7f33e5bcecb30b25" (TxIx 0),BuildTxWith (KeyWitness KeyWitnessForSpending))], 
txInsCollateral = TxInsCollateral AlonzoEraOnwardsConway [TxIn "246bc7c41ebc9aa33f1a8d8d2ec5325095db2ab7923dc70fa1628b66b643e6bb" (TxIx 1)], 
txInsReference = TxInsReferenceNone, txOuts = [TxOut (AddressInEra (ShelleyAddressInEra ShelleyBasedEraConway) (ShelleyAddress Testnet (KeyHashObj (KeyHash {unKeyHash = "db1bc3c3f99ce68977ceaf27ab4dd917123ef9e73f85c304236eab23"})) (StakeRefBase (KeyHashObj (KeyHash {unKeyHash = "97a993b0c8166aa8c48345be19257a4025ab764c86e799beab15b303"}))))) (TxOutValueShelleyBased ShelleyBasedEraConway (MaryValue (Coin 99999826755) (MultiAsset (fromList [])))) TxOutDatumNone ReferenceScriptNone], 
txTotalCollateral = TxTotalCollateralNone, 
txReturnCollateral = TxReturnCollateralNone, 
txFee = TxFeeExplicit ShelleyBasedEraConway (Coin 173245), 
txValidityLowerBound = TxValidityNoLowerBound, 
txValidityUpperBound = TxValidityUpperBound ShelleyBasedEraConway Nothing, 
txMetadata = TxMetadataNone, 
txAuxScripts = TxAuxScriptsNone, 
txExtraKeyWits = TxExtraKeyWitnessesNone, 
txProtocolParams = BuildTxWith (Just PParams (ConwayPParams {cppMinFeeA = Coin 44, cppMinFeeB = Coin 155381, cppMaxBBSize = 90112, cppMaxTxSize = 16384, cppMaxBHSize = 1100, cppKeyDeposit = Coin 2000000, cppPoolDeposit = Coin 500000000, cppEMax = EpochInterval 18, cppNOpt = 500, cppA0 = 3 % 10, cppRho = 3 % 1000, cppTau = 1 % 5, cppProtocolVersion = ProtVer {pvMajor = Version 10, pvMinor = 0}, cppMinPoolCost = Coin 340000000, cppCoinsPerUTxOByte = Coin 4310, cppCostModels = CostModels {_costModelsValid = fromList [(PlutusV1,CostModel PlutusV1 [205665,812,1,1,1000,571,0,1,1000,24177,4,1,1000,32,117366,10475,4,23000,100,23000,100,23000,100,23000,100,23000,100,23000,100,100,100,23000,100,19537,32,175354,32,46417,4,221973,511,0,1,89141,32,497525,14068,4,2,196500,453240,220,0,1,1,1000,28662,4,2,245000,216773,62,1,1060367,12586,1,208512,421,1,187000,1000,52998,1,80436,32,43249,32,1000,32,80556,1,57667,4,1000,10,197145,156,1,197145,156,1,204924,473,1,208896,511,1,52467,32,64832,32,65493,32,22558,32,16563,32,76511,32,196500,453240,220,0,1,1,69522,11687,0,1,60091,32,196500,453240,220,0,1,1,196500,453240,220,0,1,1,806990,30482,4,1927926,82523,4,265318,0,4,0,85931,32,205665,812,1,1,41182,32,212342,32,31220,32,32696,32,43357,32,32247,32,38314,32,57996947,18975,10]),(PlutusV2,CostModel PlutusV2 [205665,812,1,1,1000,571,0,1,1000,24177,4,1,1000,32,117366,10475,4,23000,100,23000,100,23000,100,23000,100,23000,100,23000,100,100,100,23000,100,19537,32,175354,32,46417,4,221973,511,0,1,89141,32,497525,14068,4,2,196500,453240,220,0,1,1,1000,28662,4,2,245000,216773,62,1,1060367,12586,1,208512,421,1,187000,1000,52998,1,80436,32,43249,32,1000,32,80556,1,57667,4,1000,10,197145,156,1,197145,156,1,204924,473,1,208896,511,1,52467,32,64832,32,65493,32,22558,32,16563,32,76511,32,196500,453240,220,0,1,1,69522,11687,0,1,60091,32,196500,453240,220,0,1,1,196500,453240,220,0,1,1,1159724,392670,0,2,806990,30482,4,1927926,82523,4,265318,0,4,0,85931,32,205665,812,1,1,41182,32,212342,32,31220,32,32696,32,43357,32,32247,32,38314,32,35892428,10,57996947,18975,10,38887044,32947,10]),(PlutusV3,CostModel PlutusV3 [100788,420,1,1,1000,173,0,1,1000,59957,4,1,11183,32,201305,8356,4,16000,100,16000,100,16000,100,16000,100,16000,100,16000,100,100,100,16000,100,94375,32,132994,32,61462,4,72010,178,0,1,22151,32,91189,769,4,2,85848,123203,7305,-900,1716,549,57,85848,0,1,1,1000,42921,4,2,24548,29498,38,1,898148,27279,1,51775,558,1,39184,1000,60594,1,141895,32,83150,32,15299,32,76049,1,13169,4,22100,10,28999,74,1,28999,74,1,43285,552,1,44749,541,1,33852,32,68246,32,72362,32,7243,32,7391,32,11546,32,85848,123203,7305,-900,1716,549,57,85848,0,1,90434,519,0,1,74433,32,85848,123203,7305,-900,1716,549,57,85848,0,1,1,85848,123203,7305,-900,1716,549,57,85848,0,1,955506,213312,0,2,270652,22588,4,1457325,64566,4,20467,1,4,0,141992,32,100788,420,1,1,81663,32,59498,32,20142,32,24588,32,20744,32,25933,32,24623,32,43053543,10,53384111,14333,10,43574283,26308,10,16000,100,16000,100,962335,18,2780678,6,442008,1,52538055,3756,18,267929,18,76433006,8868,18,52948122,18,1995836,36,3227919,12,901022,1,166917843,4307,36,284546,36,158221314,26549,36,74698472,36,333849714,1,254006273,72,2174038,72,2261318,64571,4,207616,8310,4,1293828,28716,63,0,1,1006041,43623,251,0,1])], _costModelsUnknown = fromList []}, cppPrices = Prices {prMem = 577 % 10000, prSteps = 721 % 10000000}, cppMaxTxExUnits = WrapExUnits {unWrapExUnits = ExUnits' {exUnitsMem' = 14000000, exUnitsSteps' = 10000000000}}, cppMaxBlockExUnits = WrapExUnits {unWrapExUnits = ExUnits' {exUnitsMem' = 62000000, exUnitsSteps' = 20000000000}}, cppMaxValSize = 5000, cppCollateralPercentage = 150, cppMaxCollateralInputs = 3, cppPoolVotingThresholds = PoolVotingThresholds {pvtMotionNoConfidence = 3 % 5, pvtCommitteeNormal = 13 % 20, pvtCommitteeNoConfidence = 13 % 20, pvtHardForkInitiation = 51 % 100, pvtPPSecurityGroup = 3 % 5}, cppDRepVotingThresholds = DRepVotingThresholds {dvtMotionNoConfidence = 67 % 100, dvtCommitteeNormal = 67 % 100, dvtCommitteeNoConfidence = 13 % 20, dvtUpdateToConstitution = 3 % 4, dvtHardForkInitiation = 3 % 5, dvtPPNetworkGroup = 67 % 100, dvtPPEconomicGroup = 67 % 100, dvtPPTechnicalGroup = 67 % 100, dvtPPGovGroup = 3 % 4, dvtTreasuryWithdrawal = 67 % 100}, cppCommitteeMinSize = 5, cppCommitteeMaxTermLength = EpochInterval 146, cppGovActionLifetime = EpochInterval 14, cppGovActionDeposit = Coin 100000000000, cppDRepDeposit = Coin 500000000, cppDRepActivity = EpochInterval 20, cppMinFeeRefScriptCostPerByte = 15 % 1})), 
txWithdrawals = TxWithdrawalsNone, 
txCertificates = TxCertificatesNone, 
txUpdateProposal = TxUpdateProposalNone, 
txMintValue = TxMintNone, 
txScriptValidity = TxScriptValidityNone, 
txProposalProcedures = Just (Featured ConwayEraOnwardsConway (
TxProposalProcedures 
    (OSet {osSSeq = StrictSeq {fromStrict = fromList []}, osSet = fromList []}) 
    (BuildTxWith (fromList [(ProposalProcedure {pProcDeposit = Coin 100000000000, pProcReturnAddr = RewardAccount {raNetwork = Testnet, raCredential = KeyHashObj (KeyHash {unKeyHash = "db1bc3c3f99ce68977ceaf27ab4dd917123ef9e73f85c304236eeab3"})}, pProcGovAction = ParameterChange SNothing 
        (PParamsUpdate (ConwayPParams {cppMinFeeA = SNothing, cppMinFeeB = SNothing, cppMaxBBSize = SNothing, cppMaxTxSize = SNothing, cppMaxBHSize = SNothing, cppKeyDeposit = SNothing, cppPoolDeposit = SNothing, cppEMax = SNothing, cppNOpt = SNothing, cppA0 = SNothing, cppRho = SNothing, cppTau = SNothing, cppProtocolVersion = NoUpdate, cppMinPoolCost = SNothing, cppCoinsPerUTxOByte = SNothing, cppCostModels = SNothing, cppPrices = SNothing, cppMaxTxExUnits = SNothing, cppMaxBlockExUnits = SJust (WrapExUnits {unWrapExUnits = ExUnits' {exUnitsMem' = 300000, exUnitsSteps' = 30000}}), cppMaxValSize = SNothing, cppCollateralPercentage = SNothing, cppMaxCollateralInputs = SNothing, cppPoolVotingThresholds = SNothing, cppDRepVotingThresholds = SNothing, cppCommitteeMinSize = SNothing, cppCommitteeMaxTermLength = SNothing, cppGovActionLifetime = SNothing, cppGovActionDeposit = SNothing, cppDRepDeposit = SNothing, cppDRepActivity = SNothing, cppMinFeeRefScriptCostPerByte = SNothing})) (SJust (ScriptHash "edcd84c10e36ae810dc50847477083069db796219b39ccde790484e0")), 
        pProcAnchor = Anchor {anchorUrl = Url {urlToText = "https://bit.ly/3zCH2HL"}, anchorDataHash = SafeHash "1111111111111111111111111111111111111111111111111111111111111111"}},
        PlutusScriptWitness PlutusScriptV3InConway PlutusScriptV3 (PScript (PlutusScriptSerialised "Y\b,\SOH\SOH\NUL2222222222222222222222222222222222222222222%\147#%35sFn\GS \NUL\NUL\DC1\128\t\129!\186\179WBj\232\141U\207\NUL\DLET\204\213\205\EM\184t\128\DLE\NULF\NULB\198\170\231@\EOT\221Q\171\161\&5tF\174\136\213\\\241\186\163%35sFn\GS \n5W:\NUL\"j\232M]\DC1\170\185\224\SOH\SYN7Tj\232M]\DC1\171\162\&5W<n\168\NULd+&\NUL`\ETX\DC4\154,\138L0!\128\FS\NULR\NUL\f\NUL\224\a\NUL\CAN\SOH`\ACK\144\RS@`\128X\192\SO\NUL)\NUL\SYN\NULp\ETX\128\f\NUL\176\ETXH0&\131 0`\a\NUL\CAN\NUL`\ACK\144@mb\EOT\224\NUL`\NUL\CAN\SOH\192\ENQ \EOT\192\SO\NULp\SOH\128\SYN\NULi\EOT\EOT\NUL\RS\NUL\ACK\NULp\SOH\128\ACK\NULi\EOT\EOT\NUL~\NUL\ACK\NUL\SOH\128\FS\NULR\NULl\NUL\224\ACK\STX8\SOH\192\ACK\NUL\CAN\SOH\164\DLE\DLE\NUL\152\NUL\CAN\NUL\ACK\NULp\SOHH\STX0\ETX\128\CAN\b\224\a\NUL\CAN\NUL`\ACK\144H'`\NUL`\NUL\CAN\SOH\192\ENQ \n\192\SO\NULp\SOH\128\SYN\NULi\EOT\EOTK\212\ACK\f\NUL\224\ETX\NUL\f\NUL\210\b\n\222 L\NUL\f\NUL\ETX\NUL8\NUL\164\SOH\152\SOH\192\SO\NUL0\STX\192\r \128\202\181\238\SOH\128\193\NUL\209\128\FS\NULR\NUL\236\NUL\224\ACK\STX8\NUL\f\NUL\224\STX\144\b`\a\NUL8\NUL\192\v\NUL4\131\208\SO\ETX\ACK\NULp\SOH\128\ACK\NULi\ENQ\NUL\254\NUL\EOT\STXC\NUL8\NUL\164\STXX\ETX\192\f\SOH\160\DLE0\ETX\128\n@)\128<\NUL\224\ETX\NUL,\NUL\204\aR\r\NUL\248\a\152\SOH\192\ACK\NUL\CAN\SOH\152\SO\164\DC2\NULx\NUL\CAN\NUL\ACK\NULp\SOHH\ENQ\176\a\128\CAN\ETX`\a\NUL\CAN\NUL`\ACK`>\144\n@8\192\NUL0\ETX\128\n@A\128\FS\NUL\192F\SOH\163\NUL8\NUL\164\EOTX\SOH\192\SO\NUL0\STX\192\r \240.\128\193\128\FS\NUL`\SOH\128\SUBA\144\203\128\SOH\NUL\144\192\SO\NUL)\SOH&\NUL\f\NUL\224\STX\144\DC3`\v\NUL8\ETX\192\SO\NUL0\STX\192\f\192u 2\192\NUL\192\SO\NUL0\NUL\192\f\192u \n\192\NUL\192\NUL`\a\NULx\SOH\192\ACK\NULX\SOH\152\SO\164\CAN\ETB\NULX\NUL\CAN\SOH\192\ACK\NUL\CAN\SOH\152\SO\164\DC2\t\216\NUL\CAN\NUL\f\NUL\ETX\NUL8\NUL\164\ENQ\CAN\STX\192\SO\NULp\ETX\SOH\FS\NUL\224\ETX\NUL\f\NUL\210\b\SO\137\"l\NUL\f\NUL\ACK\NULp\ETX\128\CAN\b\224\a\NUL\CAN\NUL`\ACK\144@lGp\183\224\NUL`\NUL0\NUL\f\NUL\224\STX\144\NAK`\v\NUL8\SOH\192\f\EOTp\ETX\128\f\NUL0\ETXH ..\FS\176\NUL0\NUL\CAN\SOH\192\SO\NUL`#\128\FS\NUL`\SOH\128\SUBA\SOH\129\249\ENQT\ENQ\128\SOH\128\NUL\192\NUL0\ETX\128\n@Y\128\FS\NUL\192G\NUL8\NUL\192\ETX\NUL4\130\ETX\NUL\a\NUL\ETX\NUL\NUL\192\SO\NUL)\SOHv\NULp\ETX\128\f\NUL\176\ETXH2\NUL`0`\a\NUL\CAN\NUL`\ACK\144H\SOH\224\NUL@$0\ETX\128\n@a\128\FS\NUL\192C\NUL\SOH\128\FS\NULR\ETX,\SOH`\ACK\NUL8\SOH\128\RS\NUL`\a\128\CAN\SOH@\DLE\f\NUL\224\STX\144\SUB`\v\NUL0\SOH\192\f\NUL\240\ETX\NUL<\NUL\192\SI\NUL0\STX\192\f\NULp\ETX\NUL\FS\NUL\192\a\NUL8\ETX\192\SO\NUL0\STX\192\f\ENQ`\CAN@\DC4\128 \NUL\192\SO\NUL)\SOH\182\NULp\ETX\128\f\NUL\176\ETXH\NUL0\ETXH\SOH\176\NUL\CAN\SOH\192\ACK\NUL\CAN\SOH\164\STX\152\NUL\CAN\NUL\ACK\NULp\SOHH\SO0\ETX\128\FS\NUL`\ENQ\128\SUB@\SOH\128\SUB@I\128\NUL\192\SO\NUL0\NUL\192\r \202\EOT\192\NUL\128H`\a\NUL\DC4\128\235\NUL8\SOH\128\134\NULp\SOH\128\ACK\NULi\NUL\246\NUL\ACK\NUL\SOH\128\FS\NULR\ETX\204\NUL\224\ACK\SOHX\SOH\192\ACK\NUL\CAN\SOH\164\DLE\DLE\DC2\188\241\&8\192\152\NUL\CAN\NUL\ACK\NULp\SOHH\SI\176\ETX\128\CAN\ENQ`\a\NUL\CAN\NUL`\ACK\144@P[\195\244\130\224\NUL`\NUL\CAN\SOH\192\ENQ @\192\SO\NULp\SOH\128\SYN\NULi\NUL\212\ACK\f\NUL\224\ETX\NUL\f\NUL\210\EOT\172\NUL\f\NUL\ETX\NUL8\NUL\164\bX\SOH\192\f\EOT`\SYN0\NUL\NUL\NUL\NUL\STX\NUL\240\ETX\NULl\NUL\224\ETX\NUL\f\NUL\192Z\SOHf\NUL\STX\NUL\240\ETX\NUL\\\NUL\224\ETX\NUL\f\NUL\192W\NUL0\DLE\192\NUL`\NUL \SI\NUL8\NUL\192\v\NUL0\DC2\192\f\192] (\192\NUL@\b\128\FS\SOH\224\a\NUL\CAN\SOH`\ACK\STX8\NUL\DLE\EOT0\NUL@\SO\NUL0\NUL\192\f\EOT\176\ETX\SOH\FS\NUL\ACK\NUL\b\NUL\192\v\NUL0\r\128I\NUL\CAN\SOH`\ACK\SOH\216\SOH\152\t$\EM\NUL8\NUL\b\SOH\192\ACK\NUL\DLE\ACK`\NUL\128\FS\NUL`\t\NUL\246\NUL\b\NUL\192\v\NUL4\128\ETX\NUL4\130\STX%\235\NUL\SOH\NUL8\NUL\192\ETX\NUL4\131@?\NUL\ETX\NUL\EOT\NUL\192#\NUL\EOT\NUL\224\ETX\NUL\f\NUL\210\b\tN\189\192<\NUL\f\NUL\DLE\ETX\NUL\156\NUL\DLE\ETX0\SIH\NUL\176\NUL@\ACK\NULX\SOH\164\NULX\NUL\DLE\SOH\128\DC4\SOH\198\SOHI\NULQ\128R@(`\SYN\144\EOT\CAN\EOT$\NUL\134\NUL\169\NUL\161\128\&2@\ENQ\NUL4\128\ETX\NUL\SOH\128b@\204`\SYN\144\r\CAN\ENQ$\STXF\SOH)\NULA\128B@\EOT`\SO\144\NUL\CAN\ETX$\NUL\198\SOHDFfj\174|\NULJ\NUL\ENQ\NUL3(\NUL\154\171\157\NUL\EM\170\185\224\SOH\SUB\186\DLE\STX\152\SOH\154\186 \STX$\198\SOH$D\166R\NULq0\SOHI\164C \ENQ\"Y\NULh\152\STX\164\210!\144\STX\145,\153\128\153\186\208\STX\NULh\172\153\128p\STX\128\fL\192\&0\SOH\192\SO0\STXD\204\ETX\NUL\FS\STX\163\NUL \DC2\200\SOHF\NUL\DC2!\128\DLE\192\b\136\NULL\NULH\128\tL\200\192\EOT\NULH\132\140\140\192\b\140\NUL\136\140\NUL\128\f\140\NUL\136\140\NUL@\f\141L\192\DLE\SOH\NUL\f\212\NUL\192\EOTH\136\204\NUL\200\150@\n0\NUL\144\153\152\EOT\192\EOT\136\204\213\205\EM\184p\STX\NUL\CAN\NUL@\n\SOHR#3W4f\226\NUL\b\NUL`\SOH\NUL)\DC1\153\171\154\&3q \EOT\NUL0\NUL\128\DC4\136\204\213\205\EM\184\144\STX\NUL\CAN\SOH@\STXDfj\230\140\220@\SOH\NUL\f\NUL\160\SOH\"S3W4f\226@\b\NULD\NULD\NUL\164Jfj\230\140\220H\SOH\NUL\b\128\DLE\128\b\NULM\214\128\DC4\132\204\SOH\NUL\EOT\221`\SOHHL\140\204\STX\160\STXE \ENQ\"\144\ETX\145)\153\171\154\&3p\224\b\NULBfj\230\140\220\&8\SOH\128\f\NUL \EOT0\STX$R\NULR)\NUL9\DC1\152\b\153\184 \EOT\NUL\DC37\EOT\NUL@\ACKH\164\NUL\164R\NULr#3W4f\226\f\220\DLE\STX\NUL\t\155\130\NUL \ETX\128\EOT\NUL\136\ACKH\164\NUL\164R\NULr#3W4f\226L\220\DLE\STX\NUL\t\155\130\NUL \ETX\128\DC4\NUL\t\DC4\128\DC4\138@\SODfj\230\140\220A\155\130\NUL@\SOH3p@\EOT\NULp\STX\128\SOH\"Y3\NUL\224\STX\NUL\CAN\128\f@\t\"Y3\NUL\224\STX\NUL\CAN\128\DC4@\EOT\NUL#3#5sF\174\140\213\209\NUL\t\EM\128Q\186\211WB\NULf\235M]\b\SOH\SUB\186 \SOH&\128\SOH\186\192\STX\DC4\128\f\140\205\\\209\171\163\NUL\CAN\NUL@\nDK&`\f\NULf\174\132\NULbf\NUL\160\EOTj\232\128\ACK0\STX\f\SOHH\137L\205\\\209\155\135H\NUL\NUL\EOTXT\204\213\205\EM\184\128\SOHH\NUL\EOT\204\NUL\204\220\n@\NUL\NULFn\ENQ \NUL\NUL\DC12\128\t\155\132\NUL0\SOH\153\184@\STX\NUL\DC1\152\STX\NUL\DLE\NUL\152\STX\DC1\DC2\153\154\185\163\&7\SO\144\NUL\NUL\b\128\DLE\153\128\CAN\NUL\153\184`\STX\NUL\DC2\"3\NULb%\144\SOH\140\NUL$C \ENQ\"23\NUL\210%\144\SOH\137\128H\ETXH\133d\204\SOH@\b\ETX\"`\b\NUL1\128\DLE\NULK \ENQ\EM\NUL\153\DC1\DC1\DC1\DLE\SOH\163 \DC3\"\"\"\"\NULTH\150L\228\STX\228DDD@\DLE\NUL \SOH\140\NUL\163\NUL\NUL\NUL\"%35sFn\FS\NUL\128\EOT`\NUL*fj\230\140\220H\SOH\NUL\b\192\DLE`\EOTE \ENQ\"\144\ETX\145\EM\154\185\163\&7\DC2f\224\128\DLE\NULL\220\DLE\SOH\NUL\FS\NUL \EOT\DC1\145\128\b\NUL\145\128\DC1\EM\128\DLE\SOH\NUL\t")) NoScriptDatumForStake (HashableScriptData "\216y\128" (ScriptDataConstructor 0 [])) (ExecutionUnits {executionSteps = 555000, executionMemory = 119000000}))])))), 
txVotingProcedures = Just (Featured ConwayEraOnwardsConway TxVotingProceduresNone), 
txCurrentTreasuryValue = Nothing, 
txTreasuryDonation = Nothing}

Output tx

Note that the transaction doesn't have the proposal procedures set and gives

{
    "cborHex": "84a400d9010282825820adb8ee9e995afc73a0c0885647516f95fc4b709fde0050e71e2c8e92ea43023700825820c8f96031abcec6d4378c0f910acde1f1fae47e1b890646db7f33e5bcecb30b25000dd9010281825820246bc7c41ebc9aa33f1a8d8d2ec5325095db2ab7923dc70fa1628b66b643e6bb01018182583900db1bc3c3f99ce68977ceaf27ab4dd917123ef9e73f85c304236eab2397a993b0c8166aa8c48345be19257a4025ab764c86e799beab15b3031b0000001748744343021a0002a4bda100d90102818258205f89ea8c6ab580e2e7a32c3586869eb95fae54f42ac982639b6665359601f63e5840f4cddbe6351bcaf177559e3ceab517de680897d688582d3337793bf74bfe87dbf5151a950cbafdda2fb6e393932ebab51692453a647e6626d0681267ad00af05f5f6",
    "description": "Ledger Cddl Format",
    "type": "Witnessed Tx ConwayEra"
}
mesudip commented 1 month ago

Investigation

cardano-api-9.1.0.0

Script Proposals appear to be ignored here.

https://github.com/IntersectMBO/cardano-api/blob/a7af2f29dbc7ae923a7140dddbbbb0f89f760046/cardano-api/internal/Cardano/Api/Tx/Body.hs#L2366

carbolymer commented 1 month ago

@spannercode how did you create the transaction? Can you attach the proposal procedure script?

mesudip commented 1 month ago

The code to create the transaction is a part of larger codebase.

https://github.com/dQuadrant/kuber/blob/b9d4fee95570830b2dc13d454c2b169635a464ac/src/Cardano/Kuber/Core/TxFramework.hs#L999-L1005

Script

I don't have access to the code but the guardrail script should be located here: https://github.com/IntersectMBO/constitution-priv

Here is the compiled version of guardrail script:

{
    "type": "PlutusScriptV3",
    "description": "",
    "cborHex": "590844590841010100323232323232323232323232323232323232323232323232323232323232323232323232323232323225932325333573466e1d2000001180098111bab357426ae88d55cf001054ccd5cd19b874801000460042c6aae74004dd51aba1357446ae88d55cf1baa325333573466e1d200a35573a00226ae84d5d11aab9e0011637546ae84d5d11aba235573c6ea800642b26006003149a2c8a4c301f801c0052000c00e0070018016006901e406cc00e003000c00d20d00fc000c0003003800a4005801c00e003002c00d20c09a0c80d9801c006001801a4101b5881380018000600700148013003801c006005801a410100078001801c006001801a4101001f8001800060070014801b003801807e007001800600690404002600060001801c0052008c00e00601f801c006001801a41209d8001800060070014802b003801c006005801a410112f501b3003800c00300348202b7881300030000c00e00290066007003800c00b003482032ad7b806036403060070014803b003801807e0003003800a4021801c00e003002c00d20f40380d9801c006001801a41403f800100a0c00e0029009600f0030068040c00e002900a600f003800c00b003301d483403e01660070018006006603a904801e00060001801c0052016c01e00600d801c006001801980e2402900e30000c00e0029010600700300f8060c00e00290116007003800c00b003483c0ba03660070018006006906432e00040283003800a40498003003800a404d802c00e00f003800c00b003301d480cb0003003800c003003301d4802b00030001801c01e0070018016006603a90605c01600060070018006006603a9048276000600030000c00e0029014600b003801c00c03f003800c00300348203a2489b00030001801c00e00601f801c006001801a4101b11dc2df80018000c0003003800a4055802c00e00700300fc00e003000c00d2080b8b872c000c0006007003801807e00700180060069040607e4155016000600030000c00e0029016600700300fc00e003000c00d2080c001c000c0003003800a405d801c00e003002c00d20c80180d9801c006001801a412007800100a0c00e00290186007003012c0006007001480cb005801801e006003801800e00600500403003800a4069802c00c00f003001c00c007003803c00e003002c00c05300333023480692028c0004014c00c00b003003c00c00f003003c00e00f003800c00b00301480690052008003003800a406d801c00e003002c00d2000c00d2006c00060070018006006900a600060001801c0052038c00e007001801600690006006901260003003800c003003483281300020141801c005203ac00e006025801c006001801a403d800180006007001480f3003801804e00700180060069040404af3c4e302600060001801c005203ec00e006013801c006001801a4101416f0fd20b80018000600700148103003801c006005801a403501b3003800c0030034812b00030000c00e0029021600f003800c00a016c00e003000c00ccc08d20d00f4800b00030000c0000000000803c00c01a008401e00600b801c006001801808e00601d8000c000401e006009801c0060018018084028c000400e00f003800c00b003010c00080218002007001800600601d801808600030004006005801980ba40290052003002c00c037003301148320070001003800c00200cc001001801600690006006904044bd60002007001802404580020060178002007001800600690404a75ee01e00060008018026000801802e000800c00a018300748028c02d2008800c00b0034800b0000c0292002300948010c0112014300448008c0312008300b48198c029201230094800200690006000300748018c0192002300a2233335573e00250002801994004d55ce800cd55cf0008d5d08014c00cd5d10011263009222532900389800a4d2219002912c80344c01526910c80148964cc04cdd68010034564cc03801400626601800e0071801226601800e01518010096400a3000910c008600444002600244004a664600200244246466004460044460040064600444600200646a660080080066a00600224446600644b20051800484ccc02600244666ae68cdc3801000c00200500a91199ab9a33710004003000801488ccd5cd19b89002001800400a44666ae68cdc4801000c00a00122333573466e20008006005000912999ab9a3371200400220022005225333573466e24008004400840040026eb400a42660080026eb000a4264666015001229002914801c894ccd5cd19b870040021333573466e1c00c00600100218011229002914801c88cc044cdc100200099b82002003245200522900391199ab9a3371066e08010004cdc1001001c002004403245200522900391199ab9a3371266e08010004cdc1001001c00a00048a400a45200722333573466e20cdc100200099b820020038014000912c99807001000c40062004912c99807001000c400a2002001199919ab9a357466ae880048cc028dd69aba1003375a6ae84008d5d1000934000dd60010a40064666ae68d5d1800c0020052225933006003357420031330050023574400318010600a444a666ae68cdc3a40000022c2a666ae68cdc4000a400026600666e0520000023370290000008994004cdc2001800ccdc20010008cc010008004c0108894ccd5cd19b874800000440084cc00c004cdc300100091119803112c800c60012219002911919806912c800c4c02401a442b26600a004019130040018c008002590028c804c8888888800d1900991111111002a244b267201722222222008001000c600518000001112999ab9a3370e004002300015333573466e2400800460083002229002914801c88ccd5cd19b893370400800266e0800800e00100208c8c0040048c0088cc0080080041"
}