@@ -1822,9 +1822,6 @@ contract("Voting Reputation", (accounts) => {
1822
1822
} ) ;
1823
1823
1824
1824
it ( "can correctly summarize a multicall action" , async ( ) => {
1825
- const OLD_MOVE_FUNDS_SIG = soliditySha3 ( "moveFundsBetweenPots(uint256,uint256,uint256,uint256,uint256,uint256,address)" ) . slice ( 0 , 10 ) ;
1826
- // NB This is still not a full call, but it's long enough that it has a permissions signature
1827
- const OLD_MOVE_FUNDS_CALL = `${ OLD_MOVE_FUNDS_SIG } ${ "0" . repeat ( 63 ) } 1${ bn2bytes32 ( UINT256_MAX ) . slice ( 2 ) } ` ;
1828
1825
const SET_EXPENDITURE_STATE = soliditySha3 ( "setExpenditureState(uint256,uint256,uint256,uint256,bool[],bytes32[],bytes32)" ) . slice ( 0 , 10 ) ;
1829
1826
const SET_EXPENDITURE_PAYOUT = soliditySha3 ( "setExpenditurePayout(uint256,uint256,uint256,uint256,address,uint256)" ) . slice ( 0 , 10 ) ;
1830
1827
@@ -1857,8 +1854,6 @@ contract("Voting Reputation", (accounts) => {
1857
1854
const action12 = await encodeTxData ( tokenLocking , "obligateStake" , [ USER0 , WAD , token . address ] ) ;
1858
1855
const action13 = await encodeTxData ( tokenLocking , "obligateStake" , [ USER1 , WAD , token . address ] ) ;
1859
1856
1860
- const action14 = await encodeTxData ( colony , "moveFundsBetweenPots" , [ 1 , UINT256_MAX , 1 , 1 , 1 , 1 , 1 , UINT256_MAX , token . address ] ) ;
1861
-
1862
1857
let multicall ;
1863
1858
let summary ;
1864
1859
@@ -1869,11 +1864,6 @@ contract("Voting Reputation", (accounts) => {
1869
1864
expect ( summary . expenditureId ) . to . eq . BN ( expenditure2Id ) ;
1870
1865
expect ( summary . domainSkillId ) . to . eq . BN ( domain3 . skillId ) ;
1871
1866
1872
- // Blacklisted function
1873
- multicall = await encodeTxData ( colony , "multicall" , [ [ OLD_MOVE_FUNDS_CALL , action14 ] ] ) ;
1874
- summary = await voting . getActionSummary ( multicall , ADDRESS_ZERO ) ;
1875
- await checkErrorRevertEstimateGas ( voting . getActionSummary . estimateGas ( multicall , ADDRESS_ZERO ) , "colony-action-summary-forbidden-sig" ) ;
1876
-
1877
1867
// Special NO_ACTION
1878
1868
multicall = await encodeTxData ( colony , "multicall" , [ [ action9 , NO_ACTION ] ] ) ;
1879
1869
summary = await voting . getActionSummary ( multicall , ADDRESS_ZERO ) ;
@@ -3121,33 +3111,6 @@ contract("Voting Reputation", (accounts) => {
3121
3111
expect ( await voting . getMotionState ( motionId ) ) . to . eq . BN ( FINALIZED ) ;
3122
3112
} ) ;
3123
3113
3124
- it ( "cannot let an invalid motion involving multicalling OLD_MOVE_FUNDS be finalized" , async ( ) => {
3125
- const action1 = await encodeTxData ( colony , "moveFundsBetweenPots(uint256,uint256,uint256,uint256,uint256,uint256,address)" , [
3126
- 1 ,
3127
- 0 ,
3128
- 2 ,
3129
- 0 ,
3130
- 0 ,
3131
- 0 ,
3132
- ADDRESS_ZERO ,
3133
- ] ) ;
3134
- const multicall = await encodeTxData ( colony , "multicall" , [ [ action1 ] ] ) ;
3135
-
3136
- await voting . createMotion ( 1 , UINT256_MAX , ADDRESS_ZERO , multicall , domain1Key , domain1Value , domain1Mask , domain1Siblings ) ;
3137
- const motionId = await voting . getMotionCount ( ) ;
3138
-
3139
- await colony . approveStake ( voting . address , 1 , WAD , { from : USER0 } ) ;
3140
- await voting . stakeMotion ( motionId , 1 , UINT256_MAX , YAY , REQUIRED_STAKE , user0Key , user0Value , user0Mask , user0Siblings , { from : USER0 } ) ;
3141
-
3142
- await forwardTime ( STAKE_PERIOD , this ) ;
3143
-
3144
- expect ( await voting . getMotionState ( motionId ) ) . to . eq . BN ( FINALIZABLE ) ;
3145
-
3146
- await upgradeFromV9ToLatest ( colony ) ;
3147
-
3148
- expect ( await voting . getMotionState ( motionId ) ) . to . eq . BN ( FINALIZED ) ;
3149
- } ) ;
3150
-
3151
3114
it ( "cannot let an invalid motion involving multicalling NO_ACTION be finalized" , async ( ) => {
3152
3115
const multicall = await encodeTxData ( colony , "multicall" , [ [ NO_ACTION ] ] ) ;
3153
3116
0 commit comments