Skip to content

Commit f8cf478

Browse files
authored
Merge pull request #4408 from input-output-hk/ludvikgalois/no-wit-transactions
Allow assembling transactions with no witnesses
2 parents bc88bb5 + faa52ab commit f8cf478

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

cardano-cli/ChangeLog.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
- Add `query tx-mempool` ([PR 4276](https://github.com/input-output-hk/cardano-node/pull/4276))
1212

13+
- Allow assembling transactions with no witnesses ([PR 4408](https://github.com/input-output-hk/cardano-node/pull/4408))
1314

1415
### Bugs
1516

cardano-cli/src/Cardano/CLI/Shelley/Parsers.hs

+4-20
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ pTransaction =
750750

751751
pTransactionSign :: Parser TransactionCmd
752752
pTransactionSign = TxSign <$> pInputTxOrTxBodyFile
753-
<*> pSomeWitnessSigningData
753+
<*> many pWitnessSigningData
754754
<*> optional pNetworkId
755755
<*> pTxFile Output
756756

@@ -764,7 +764,7 @@ pTransaction =
764764
pTransactionAssembleTxBodyWit :: Parser TransactionCmd
765765
pTransactionAssembleTxBodyWit = TxAssembleTxBodyWitness
766766
<$> pTxBodyFile Input
767-
<*> some pWitnessFile
767+
<*> many pWitnessFile
768768
<*> pOutputFile
769769

770770
pTransactionSubmit :: Parser TransactionCmd
@@ -1665,9 +1665,8 @@ pWhichLeadershipSchedule = pCurrent <|> pNext
16651665
<> Opt.help "Get the leadership schedule for the following epoch."
16661666
)
16671667

1668-
pSomeWitnessSigningData :: Parser [WitnessSigningData]
1669-
pSomeWitnessSigningData =
1670-
some $
1668+
pWitnessSigningData :: Parser WitnessSigningData
1669+
pWitnessSigningData =
16711670
KeyWitnessSigningData
16721671
<$>
16731672
( SigningKeyFile <$>
@@ -1691,21 +1690,6 @@ pSigningKeyFile fdir =
16911690
<> Opt.completer (Opt.bashCompleter "file")
16921691
)
16931692

1694-
pWitnessSigningData :: Parser WitnessSigningData
1695-
pWitnessSigningData =
1696-
KeyWitnessSigningData
1697-
<$>
1698-
( SigningKeyFile <$>
1699-
Opt.strOption
1700-
( Opt.long "signing-key-file"
1701-
<> Opt.metavar "FILE"
1702-
<> Opt.help "Filepath of the signing key to be used in witness construction."
1703-
<> Opt.completer (Opt.bashCompleter "file")
1704-
)
1705-
)
1706-
<*>
1707-
optional pByronAddress
1708-
17091693
pKesPeriod :: Parser KESPeriod
17101694
pKesPeriod =
17111695
KESPeriod <$>

0 commit comments

Comments
 (0)