Skip to content

Commit

Permalink
MEX-414: update unit tests gas limits
Browse files Browse the repository at this point in the history
Signed-off-by: Claudiu Lataretu <claudiu.lataretu@gmail.com>
  • Loading branch information
claudiulataretu committed May 24, 2024
1 parent 43bda81 commit 6131e55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modules/auto-router/specs/auto-router.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ describe('AutoRouterService', () => {
receiverUsername: undefined,
senderUsername: undefined,
gasPrice: 1000000000,
gasLimit: gasConfig.composableTasks.default,
gasLimit: 40200000,
data: 'Y29tcG9zZVRhc2tzQDAwMDAwMDBiNTU1MzQ0NDMyZDMxMzIzMzM0MzUzNjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwNzExNzJhY2UwMjZiMGM0QEBAMDJAMDAwMDAwMTQ3Mzc3NjE3MDU0NmY2YjY1NmU3MzQ2Njk3ODY1NjQ0OTZlNzA3NTc0MDAwMDAwMGI1NTUzNDQ0MzJkMzEzMjMzMzQzNTM2MDAwMDAwMDcxMTcyYWNlMDI2YjBjNA==',
chainID: 'T',
version: 1,
Expand Down Expand Up @@ -337,7 +337,7 @@ describe('AutoRouterService', () => {
receiverUsername: undefined,
senderUsername: undefined,
gasPrice: 1000000000,
gasLimit: gasConfig.composableTasks.default,
gasLimit: 75200000,
data: 'RVNEVFRyYW5zZmVyQDU1NTM0NDQzMmQzMTMyMzMzNDM1MzZAMDcwY2VmOWY1ZWRmY2YyOEA2MzZmNmQ3MDZmNzM2NTU0NjE3MzZiNzNAMDAwMDAwMDQ0NTQ3NGM0NDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwODA2ZjA1YjU5ZDNiMjAwMDBAMDNAMDAwMDAwMjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDEzMDAwMDAwMTU3Mzc3NjE3MDU0NmY2YjY1NmU3MzQ2Njk3ODY1NjQ0Zjc1NzQ3MDc1NzQwMDAwMDAwYzU3NDU0NzRjNDQyZDMxMzIzMzM0MzUzNjAwMDAwMDA1OTJhZmQ4YjAyZjAwMDAwMDIwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxMjAwMDAwMDE1NzM3NzYxNzA1NDZmNmI2NTZlNzM0NjY5Nzg2NTY0NGY3NTc0NzA3NTc0MDAwMDAwMGE0ZDQ1NTgyZDMxMzIzMzM0MzUzNjAwMDAwMDA4MDZmMDViNTlkM2IyMDAwMEAwMUA=',
chainID: 'T',
version: 1,
Expand Down
4 changes: 2 additions & 2 deletions src/modules/pair/specs/pair.transactions.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ describe('TransactionPairService', () => {
expect(transactions).toEqual({
chainID: 'T',
data: 'Y29tcG9zZVRhc2tzQDAwMDAwMDBhNGQ0NTU4MmQzMTMyMzMzNDM1MzYwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDEwNEBAQDAyQDAwMDAwMDE0NzM3NzYxNzA1NDZmNmI2NTZlNzM0NjY5Nzg2NTY0NDk2ZTcwNzU3NDAwMDAwMDBhNGQ0NTU4MmQzMTMyMzMzNDM1MzYwMDAwMDAwMTA0',
gasLimit: gasConfig.composableTasks.default,
gasLimit: 40200000,
gasPrice: 1000000000,
guardian: undefined,
guardianSignature: undefined,
Expand Down Expand Up @@ -503,7 +503,7 @@ describe('TransactionPairService', () => {
receiverUsername: undefined,
senderUsername: undefined,
gasPrice: 1000000000,
gasLimit: gasConfig.composableTasks.default,
gasLimit: 40200000,
data: 'RVNEVFRyYW5zZmVyQDRkNDU1ODJkMzEzMjMzMzQzNTM2QDA1QDYzNmY2ZDcwNmY3MzY1NTQ2MTczNmI3M0AwMDAwMDAwNDQ1NDc0YzQ0MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxMDVAMDJAMDAwMDAwMTU3Mzc3NjE3MDU0NmY2YjY1NmU3MzQ2Njk3ODY1NjQ0Zjc1NzQ3MDc1NzQwMDAwMDAwYzU3NDU0NzRjNDQyZDMxMzIzMzM0MzUzNjAwMDAwMDAxMDVAMDFA',
chainID: mxConfig.chainID,
version: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { constantsConfig, gasConfig, scAddress } from 'src/config';
import { StakingAbiService } from 'src/modules/staking/services/staking.abi.service';
import { MXApiServiceProvider } from 'src/services/multiversx-communication/mx.api.service.mock';
import { SwapRouteModel } from 'src/modules/auto-router/models/auto-route.model';
import { PairFilteringService } from 'src/modules/pair/services/pair.filtering.service';

describe('PositionCreatorTransaction', () => {
let module: TestingModule;
Expand All @@ -56,6 +57,7 @@ describe('PositionCreatorTransaction', () => {
PairService,
PairComputeServiceProvider,
PairTransactionService,
PairFilteringService,
WrapService,
WrapAbiServiceProvider,
WrapTransactionsService,
Expand Down

0 comments on commit 6131e55

Please sign in to comment.