Skip to content

Commit d004d34

Browse files
committed
No certificate was in tx!
1 parent 986d049 commit d004d34

File tree

7 files changed

+47
-6
lines changed

7 files changed

+47
-6
lines changed

bench/plutus-scripts-bench/plutus-scripts-bench.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ library
8282
-- IOG dependencies
8383
--------------------------
8484
build-depends:
85-
, cardano-api ^>=10.19
85+
, cardano-api ^>=10.20
8686
, plutus-ledger-api ^>=1.53
8787
, plutus-tx ^>=1.53
8888
, plutus-tx-plugin ^>=1.53

bench/tx-generator/tx-generator.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ library
111111
, attoparsec-aeson
112112
, base16-bytestring
113113
, bytestring
114-
, cardano-api ^>= 10.19
114+
, cardano-api ^>= 10.20
115115
, cardano-binary
116116
, cardano-cli ^>= 10.13
117117
, cardano-crypto-class

cabal.project

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,23 @@ if impl (ghc >= 9.12)
7272
-- IMPORTANT
7373
-- Do NOT add more source-repository-package stanzas here unless they are strictly
7474
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.
75+
76+
77+
78+
source-repository-package
79+
type: git
80+
location: https://github.com/IntersectMBO/cardano-api.git
81+
tag: 597d4717fc51595305b5ba6fbf7ec39427214d12
82+
--sha256: sha256-klUKFbN5x25q72okX6yUpZ1zRS64KnvKlbq/Btw3ilw=
83+
subdir: cardano-api
84+
85+
86+
87+
88+
89+
source-repository-package
90+
type: git
91+
location: https://github.com/IntersectMBO/cardano-cli.git
92+
tag: 9460503d94187455bda7fbf8669021974a80d3aa
93+
--sha256: sha256-klUKFbN5x25q72okX6yUpZ1zRS64KnvKlbq/Btw3ilw=
94+
subdir: cardano-cli

cardano-node/cardano-node.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ library
138138
, async
139139
, base16-bytestring
140140
, bytestring
141-
, cardano-api ^>= 10.19
141+
, cardano-api ^>= 10.20
142142
, cardano-crypto-class ^>=2.2.3.2
143143
, cardano-crypto-wrapper
144144
, cardano-git-rev ^>=0.2.2

cardano-submit-api/cardano-submit-api.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ library
3939
, aeson
4040
, async
4141
, bytestring
42-
, cardano-api ^>= 10.19
42+
, cardano-api ^>= 10.20
4343
, cardano-binary
4444
, cardano-cli ^>= 10.13
4545
, cardano-crypto-class ^>=2.2.3.2

cardano-testnet/cardano-testnet.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ library
4141
, annotated-exception
4242
, ansi-terminal
4343
, bytestring
44-
, cardano-api ^>= 10.19
44+
, cardano-api ^>= 10.20
4545
, cardano-cli:{cardano-cli, cardano-cli-test-lib} ^>= 10.13
4646
, cardano-crypto-class ^>=2.2.3.2
4747
, cardano-crypto-wrapper

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/CommitteeAddNew.hs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ hprop_constitutional_committee_add_new = integrationWorkspace "constitutional-co
131131
createStakeKeyRegistrationCertificate
132132
tempAbsPath (AnyShelleyBasedEra sbe) (verificationKey stakeKeys) keyDeposit stakeCertFp
133133

134+
134135
stakeCertTxBodyFp <- H.note $ work </> "stake.registration.txbody"
135136
stakeCertTxSignedFp <- H.note $ work </> "stake.registration.tx"
136137

@@ -153,14 +154,20 @@ hprop_constitutional_committee_add_new = integrationWorkspace "constitutional-co
153154
, "--signing-key-file", signingKeyFp stakeKeys
154155
, "--out-file", stakeCertTxSignedFp
155156
]
157+
-- TODO: Left off here. No certificate was in transaction!
158+
stakeCertTx <- execCli' execConfig
159+
["debug", "transaction"
160+
, "view", "--output-json", "--tx-file", stakeCertTxSignedFp
161+
]
156162

163+
H.note_ $ "Stake registration transaction: " <> stakeCertTx
157164
void $ execCli' execConfig
158165
[ eraName, "transaction", "submit"
159166
, "--tx-file", stakeCertTxSignedFp
160167
]
161168

162169
-- make sure that stake registration cert gets into a block
163-
_ <- waitForBlocks epochStateView 1
170+
_ <- waitForBlocks epochStateView 15
164171

165172
minGovActDeposit <- getMinGovActionDeposit epochStateView ceo
166173

@@ -187,6 +194,20 @@ hprop_constitutional_committee_add_new = integrationWorkspace "constitutional-co
187194
txbodyFp <- H.note $ work </> "tx.body"
188195
txin1' <- findLargestUtxoForPaymentKey epochStateView sbe wallet0
189196

197+
198+
199+
void $ execCli' execConfig
200+
[ eraName, "stake-address", "key-hash"
201+
, "--stake-verification-key-file", verificationKeyFp stakeKeys
202+
, "--out-file", gov </> "stake-hash.addr"
203+
]
204+
205+
stakeKeyHash <- H.readFile $ gov </> "stake-hash.addr"
206+
207+
H.note_ $ "Stake key hash:" <> stakeKeyHash
208+
209+
210+
190211
-- Create temporary HTTP server with files required by the call to `cardano-cli`
191212
-- In this case, the server emulates an IPFS gateway
192213
serveFilesWhile

0 commit comments

Comments
 (0)