From 747bcf5be6788d1b80cb848a9e68ab7d1685edf0 Mon Sep 17 00:00:00 2001 From: emochka2007 Date: Sat, 25 May 2024 01:53:21 +0300 Subject: [PATCH] fix --- chain-api/src/ethereum/ethereum.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain-api/src/ethereum/ethereum.controller.ts b/chain-api/src/ethereum/ethereum.controller.ts index 5aae8ea..7fce356 100644 --- a/chain-api/src/ethereum/ethereum.controller.ts +++ b/chain-api/src/ethereum/ethereum.controller.ts @@ -1,4 +1,4 @@ -import { Body, Controller, Get, Param } from '@nestjs/common'; +import { Body, Controller, Get, Param, Post } from '@nestjs/common'; import { EthereumService } from './ethereum.service'; import { ApiTags } from '@nestjs/swagger'; import { GetSeedPhraseDto } from './ethereum.dto'; @@ -13,7 +13,7 @@ export class EthereumController { return this.ethereumService.getAddressFromPrivateKey(privateKey); } - @Get('/address-from-seed/:seedPhrase') + @Post('/address-from-seed/:seedPhrase') async getAddressFromSeedPhrase(@Body() body: GetSeedPhraseDto) { return this.ethereumService.getAddressFromSeedPhrase(body.seedPhrase); }