Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 67ebce7

Browse files
author
Victor Wiebe
committed
fix: swap bounds assertions in module factory wrapper
1 parent c0eca03 commit 67ebce7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/contract_wrappers/modules/module_factory_wrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ export default class ModuleFactoryWrapper extends ContractWrapper {
270270
const currentBound = BoundType.LowerBound === params.boundType ? await this.getLowerSTVersionBounds() : await this.getUpperSTVersionBounds();
271271
for (let i = 0; i < 3; i += 1) {
272272
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');
274274
} 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');
276276
}
277277
}
278278
return (await this.contract).changeSTVersionBounds.sendTransactionAsync(

0 commit comments

Comments
 (0)