Closed reeshavacharya closed 2 weeks ago
cc @CarlosLopezDeLara
@reeshavacharya @smelc
I discussed this with @lehins a couple of weeks ago. Technically this is a valid proposal according to the current ledger rules. i.e. Ledger can take an empty map there. However we agreed that indeed, it would be better to have a check to not allow this type of proposal. In the end, this proposal makes no sense. Ledger will implement a check for this before Chang +1, we are not in a hurry because in the bootstrap phase Treasury withdrawals are not allowed anyways.
On the CLI side, we will definitely make it mandatory field.
Edit: This PR fixes the issue https://github.com/IntersectMBO/cardano-cli/pull/877
Description
Treasury Withdrawal action is being created even when the funds receiving stake verification key file and transfer amount are not specified, which are mandatory fields for a valid proposal.
Steps to Reproduce
--funds-receiving-stake-verification-key-file
and--transfer
The transaction was submitted:
The missing fields should be mandatory. This could lead to invalid proposals being processed.
Additional Context
cardano-node 9.1.0 cardano-cli 9.2.1.0 git rev 176f99e51155cb3eaa0711db1c3c969d67438958
Possible Solution
Making the options for
--funds-receiving-stake-verification-key-file
and--transfer
forcreate-treasury-withdrawal
action mandatory.