Skip to content

Commit

Permalink
Merge branch 'development' into API-342-ensure-that-providers-delegat…
Browse files Browse the repository at this point in the history
…ion-data-is-array
  • Loading branch information
cfaur09 committed Dec 11, 2024
2 parents de14352 + 5c112f4 commit 58e2c08
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/endpoints/proxy/gateway.proxy.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { GatewayService } from "src/common/gateway/gateway.service";
import { Response, Request } from "express";
import { GatewayComponentRequest } from "src/common/gateway/entities/gateway.component.request";
import { PluginService } from "src/common/plugins/plugin.service";
import { Constants, ParseAddressPipe, ParseBlockHashPipe, ParseBlsHashPipe, ParseIntPipe, ParseTransactionHashPipe } from "@multiversx/sdk-nestjs-common";
import { Constants, ParseAddressPipe, ParseBlockHashPipe, ParseBlsHashPipe, ParseIntPipe, ParseTransactionHashPipe, ParseBoolPipe } from "@multiversx/sdk-nestjs-common";
import { CacheService, NoCache } from "@multiversx/sdk-nestjs-cache";
import { OriginLogger } from "@multiversx/sdk-nestjs-common";
import { DeepHistoryInterceptor } from "src/interceptors/deep-history.interceptor";
Expand Down Expand Up @@ -118,8 +118,12 @@ export class GatewayProxyController {
}

@Post('/transaction/simulate')
async transactionSimulate(@Body() body: any) {
return await this.gatewayPost('transaction/simulate', GatewayComponentRequest.simulateTransaction, body);
async transactionSimulate(@Query('checkSignature', ParseBoolPipe) checkSignature: boolean, @Body() body: any) {
let url = 'transaction/simulate';
if (checkSignature !== undefined) {
url += `?checkSignature=${checkSignature}`;
}
return await this.gatewayPost(url, GatewayComponentRequest.simulateTransaction, body);
}

@Post('/transaction/send-multiple')
Expand Down

0 comments on commit 58e2c08

Please sign in to comment.