Require proposalWeight/Length for close (#6398)

This commit is contained in:
Jaco 2021-10-24 16:38:49 +02:00 committed by GitHub
parent dabd965d3c
commit 2da9af03ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ function Close ({ hasFailed, hash, idNumber, proposal }: Props): React.ReactElem
<Modal.Actions>
<TxButton
accountId={accountId}
isDisabled={!hasFailed && !proposalLength}
onStart={toggleOpen}
params={
api.tx[modLocation].close.meta.args.length === 4

View File

@ -57,6 +57,7 @@ function Close ({ hasFailed, hash, idNumber, proposal, type }: Props): React.Rea
<Modal.Actions>
<TxButton
accountId={accountId}
isDisabled={!hasFailed && !proposalLength}
onStart={toggleOpen}
params={
api.tx[modLocation].close.meta.args.length === 4