mirror of
https://github.com/tornadocash/tornado-pool-relayer
synced 2024-02-02 15:04:09 +01:00
fix: response
This commit is contained in:
parent
2cf40019e0
commit
b95848c829
@ -26,7 +26,7 @@ export class ApiController {
|
||||
return res.status(HttpStatus.BAD_REQUEST).json({ error: "The job doesn't exist" });
|
||||
}
|
||||
|
||||
return job;
|
||||
return res.json(job);
|
||||
}
|
||||
|
||||
@Post('/transaction')
|
||||
@ -38,6 +38,8 @@ export class ApiController {
|
||||
return res.status(HttpStatus.BAD_REQUEST).json({ error: inputError });
|
||||
}
|
||||
|
||||
return await this.service.transaction(JSON.parse(body));
|
||||
const jobId = await this.service.transaction(JSON.parse(body));
|
||||
|
||||
return res.send(jobId);
|
||||
}
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ export type ArgsProof = {
|
||||
inputNullifiers: string[];
|
||||
outputCommitments: BytesLike[];
|
||||
outPathIndices: string;
|
||||
publicAmount: string;
|
||||
extDataHash: string;
|
||||
};
|
||||
|
||||
@ -134,7 +135,7 @@ export class TransactionProcessor extends BaseProcessor<Transaction> {
|
||||
data,
|
||||
gasLimit,
|
||||
to: contract.address,
|
||||
gasPrice: fast.toString(),
|
||||
gasPrice: toWei(fast.toString(), 'gwei'),
|
||||
value: BigNumber.from(0)._hex,
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user