From 014b4f7458abd01284549392b59d86d4f5caf1ae Mon Sep 17 00:00:00 2001 From: Mark Toda Date: Thu, 7 Mar 2024 15:49:42 -0500 Subject: [PATCH] fix: use abstract signer --- lib/handlers/hard-quote/injector.ts | 3 ++- test/handlers/hard-quote/handler.test.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/handlers/hard-quote/injector.ts b/lib/handlers/hard-quote/injector.ts index af34329..dee82c1 100644 --- a/lib/handlers/hard-quote/injector.ts +++ b/lib/handlers/hard-quote/injector.ts @@ -1,4 +1,5 @@ import { KMSClient } from '@aws-sdk/client-kms'; +import { Signer } from 'ethers'; import { KmsSigner } from '@uniswap/signer'; import { IMetric, setGlobalLogger, setGlobalMetric } from '@uniswap/smart-order-router'; import { MetricsLogger } from 'aws-embedded-metrics'; @@ -26,7 +27,7 @@ import { HardQuoteRequestBody } from './schema'; export interface ContainerInjected { quoters: Quoter[]; firehose: FirehoseLogger; - cosigner: KmsSigner; + cosigner: Signer; cosignerAddress: string; orderServiceProvider: OrderServiceProvider; } diff --git a/test/handlers/hard-quote/handler.test.ts b/test/handlers/hard-quote/handler.test.ts index 8e15ba9..e35bbd8 100644 --- a/test/handlers/hard-quote/handler.test.ts +++ b/test/handlers/hard-quote/handler.test.ts @@ -89,7 +89,8 @@ describe('Quote handler', () => { getContainerInjected: () => { return { quoters, - cosignerWallet, + cosigner: cosignerWallet, + cosignerAddress: cosignerWallet.address, orderServiceProvider: new MockOrderServiceProvider(), }; },