This repository was archived by the owner on Jul 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/contract_wrappers/modules Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -270,9 +270,9 @@ export default class ModuleFactoryWrapper extends ContractWrapper {
270
270
const currentBound = BoundType . LowerBound === params . boundType ? await this . getLowerSTVersionBounds ( ) : await this . getUpperSTVersionBounds ( ) ;
271
271
for ( let i = 0 ; i < 3 ; i += 1 ) {
272
272
if ( params . boundType === BoundType . LowerBound ) {
273
- assert . assert ( currentBound [ i ] . isLessThanOrEqualTo ( params . newVersion [ i ] ) , 'New Lower ST Bounds must be less than or equal to current' ) ;
273
+ assert . assert ( currentBound [ i ] . isGreaterThanOrEqualTo ( params . newVersion [ i ] ) , 'New Lower ST Bounds must be less than or equal to current' ) ;
274
274
} else {
275
- assert . assert ( currentBound [ i ] . isGreaterThanOrEqualTo ( params . newVersion [ i ] ) , 'New Upper ST Bounds must be greater than or equal to current' ) ;
275
+ assert . assert ( currentBound [ i ] . isLessThanOrEqualTo ( params . newVersion [ i ] ) , 'New Upper ST Bounds must be greater than or equal to current' ) ;
276
276
}
277
277
}
278
278
return ( await this . contract ) . changeSTVersionBounds . sendTransactionAsync (
You can’t perform that action at this time.
0 commit comments