@@ -46,7 +46,7 @@ describeGov('Governance: Technical Committee tests', () => {
46
46
allTechCommitteeThreshold ,
47
47
) ;
48
48
49
- const commiteeProposedEvent = Event . TechnicalCommittee . Proposed . expect ( proposeResult . result . events ) ;
49
+ const commiteeProposedEvent = Event . TechnicalCommittee . Proposed . expect ( proposeResult ) ;
50
50
const proposalIndex = commiteeProposedEvent . proposalIndex ;
51
51
const proposalHash = commiteeProposedEvent . proposalHash ;
52
52
@@ -56,9 +56,9 @@ describeGov('Governance: Technical Committee tests', () => {
56
56
await helper . technicalCommittee . collective . vote ( techcomms . greg , proposalHash , proposalIndex , true ) ;
57
57
58
58
const closeResult = await helper . technicalCommittee . collective . close ( techcomms . andy , proposalHash , proposalIndex ) ;
59
- Event . TechnicalCommittee . Closed . expect ( closeResult . result . events ) ;
60
- Event . TechnicalCommittee . Approved . expect ( closeResult . result . events ) ;
61
- const { result} = Event . TechnicalCommittee . Executed . expect ( closeResult . result . events ) ;
59
+ Event . TechnicalCommittee . Closed . expect ( closeResult ) ;
60
+ Event . TechnicalCommittee . Approved . expect ( closeResult ) ;
61
+ const { result} = Event . TechnicalCommittee . Executed . expect ( closeResult ) ;
62
62
expect ( result ) . to . eq ( 'Ok' ) ;
63
63
64
64
return closeResult ;
@@ -72,15 +72,15 @@ describeGov('Governance: Technical Committee tests', () => {
72
72
await helper . getSudo ( ) . democracy . externalProposeDefaultWithPreimage ( sudoer , preimageHash ) ;
73
73
74
74
const fastTrackProposal = await proposalFromAllCommittee ( helper . democracy . fastTrackCall ( preimageHash , democracyFastTrackVotingPeriod , 0 ) ) ;
75
- Event . Democracy . Started . expect ( fastTrackProposal . result . events ) ;
75
+ Event . Democracy . Started . expect ( fastTrackProposal ) ;
76
76
} ) ;
77
77
78
78
itSub ( 'TechComm can cancel Democracy proposals' , async ( { helper} ) => {
79
79
const proposeResult = await helper . getSudo ( ) . democracy . propose ( sudoer , dummyProposalCall ( helper ) , 0n ) ;
80
- const proposalIndex = Event . Democracy . Proposed . expect ( proposeResult . result . events ) . proposalIndex ;
80
+ const proposalIndex = Event . Democracy . Proposed . expect ( proposeResult ) . proposalIndex ;
81
81
82
82
const cancelProposal = await proposalFromAllCommittee ( helper . democracy . cancelProposalCall ( proposalIndex ) ) ;
83
- Event . Democracy . ProposalCanceled . expect ( cancelProposal . result . events ) ;
83
+ Event . Democracy . ProposalCanceled . expect ( cancelProposal ) ;
84
84
} ) ;
85
85
86
86
itSub ( 'TechComm can cancel ongoing Democracy referendums' , async ( { helper} ) => {
@@ -89,7 +89,7 @@ describeGov('Governance: Technical Committee tests', () => {
89
89
const referendumIndex = startedEvent . referendumIndex ;
90
90
91
91
const emergencyCancelProposal = await proposalFromAllCommittee ( helper . democracy . emergencyCancelCall ( referendumIndex ) ) ;
92
- Event . Democracy . Cancelled . expect ( emergencyCancelProposal . result . events ) ;
92
+ Event . Democracy . Cancelled . expect ( emergencyCancelProposal ) ;
93
93
} ) ;
94
94
95
95
itSub ( 'TechComm member can veto Democracy proposals' , async ( { helper} ) => {
@@ -100,7 +100,7 @@ describeGov('Governance: Technical Committee tests', () => {
100
100
techcomms . andy ,
101
101
helper . democracy . vetoExternalCall ( preimageHash ) ,
102
102
) ;
103
- Event . Democracy . Vetoed . expect ( vetoExternalCall . result . events ) ;
103
+ Event . Democracy . Vetoed . expect ( vetoExternalCall ) ;
104
104
} ) ;
105
105
106
106
itSub ( 'TechComm can cancel Fellowship referendums' , async ( { helper} ) => {
@@ -114,9 +114,9 @@ describeGov('Governance: Technical Committee tests', () => {
114
114
proposal ,
115
115
defaultEnactmentMoment ,
116
116
) ;
117
- const referendumIndex = Event . FellowshipReferenda . Submitted . expect ( submitResult . result . events ) . referendumIndex ;
117
+ const referendumIndex = Event . FellowshipReferenda . Submitted . expect ( submitResult ) . referendumIndex ;
118
118
const cancelProposal = await proposalFromAllCommittee ( helper . fellowship . referenda . cancelCall ( referendumIndex ) ) ;
119
- Event . FellowshipReferenda . Cancelled . expect ( cancelProposal . result . events ) ;
119
+ Event . FellowshipReferenda . Cancelled . expect ( cancelProposal ) ;
120
120
} ) ;
121
121
122
122
itSub ( 'TechComm member can add a Fellowship member' , async ( { helper} ) => {
@@ -369,7 +369,7 @@ describeGov('Governance: Technical Committee tests', () => {
369
369
370
370
itSub ( '[Negative] TechComm member cannot cancel Democracy proposals' , async ( { helper} ) => {
371
371
const proposeResult = await helper . getSudo ( ) . democracy . propose ( sudoer , dummyProposalCall ( helper ) , 0n ) ;
372
- const proposalIndex = Event . Democracy . Proposed . expect ( proposeResult . result . events ) . proposalIndex ;
372
+ const proposalIndex = Event . Democracy . Proposed . expect ( proposeResult ) . proposalIndex ;
373
373
374
374
await expect ( helper . technicalCommittee . collective . execute (
375
375
techcomms . andy ,
@@ -422,7 +422,7 @@ describeGov('Governance: Technical Committee tests', () => {
422
422
defaultEnactmentMoment ,
423
423
) ;
424
424
425
- const referendumIndex = Event . FellowshipReferenda . Submitted . expect ( submitResult . result . events ) . referendumIndex ;
425
+ const referendumIndex = Event . FellowshipReferenda . Submitted . expect ( submitResult ) . referendumIndex ;
426
426
427
427
await expect ( helper . technicalCommittee . collective . execute (
428
428
techcomms . andy ,
@@ -439,7 +439,7 @@ describeGov('Governance: Technical Committee tests', () => {
439
439
committeeSize ,
440
440
) ;
441
441
442
- const committeeProposedEvent = Event . TechnicalCommittee . Proposed . expect ( proposeResult . result . events ) ;
442
+ const committeeProposedEvent = Event . TechnicalCommittee . Proposed . expect ( proposeResult ) ;
443
443
const proposalIndex = committeeProposedEvent . proposalIndex ;
444
444
const proposalHash = committeeProposedEvent . proposalHash ;
445
445
0 commit comments