mirror of
https://github.com/tornadocash/tornado-pool-relayer
synced 2024-02-02 15:04:09 +01:00
fix: types
This commit is contained in:
parent
3b0a8631ed
commit
2cf40019e0
@ -17,6 +17,8 @@ import { ChainId } from '@/types';
|
|||||||
export type ExtData = {
|
export type ExtData = {
|
||||||
recipient: string;
|
recipient: string;
|
||||||
relayer: string;
|
relayer: string;
|
||||||
|
fee: BigNumberish;
|
||||||
|
extAmount: BigNumberish;
|
||||||
encryptedOutput1: BytesLike;
|
encryptedOutput1: BytesLike;
|
||||||
encryptedOutput2: BytesLike;
|
encryptedOutput2: BytesLike;
|
||||||
};
|
};
|
||||||
@ -28,8 +30,6 @@ export type ArgsProof = {
|
|||||||
inputNullifiers: string[];
|
inputNullifiers: string[];
|
||||||
outputCommitments: BytesLike[];
|
outputCommitments: BytesLike[];
|
||||||
outPathIndices: string;
|
outPathIndices: string;
|
||||||
extAmount: BigNumberish;
|
|
||||||
fee: BigNumberish;
|
|
||||||
extDataHash: string;
|
extDataHash: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -61,9 +61,9 @@ export class TransactionProcessor extends BaseProcessor<Transaction> {
|
|||||||
try {
|
try {
|
||||||
await job.isActive();
|
await job.isActive();
|
||||||
|
|
||||||
const { args, amount } = job.data;
|
const { extData, amount } = job.data;
|
||||||
|
|
||||||
await this.checkFee({ fee: args[6], amount });
|
await this.checkFee({ fee: extData.fee, amount });
|
||||||
await this.submitTx(job);
|
await this.submitTx(job);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
await job.moveToFailed(err, true);
|
await job.moveToFailed(err, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user