diff --git a/packages/orderbook/src/seaport/seaport-lib-factory.ts b/packages/orderbook/src/seaport/seaport-lib-factory.ts index 767ee49e2d..b04bafd505 100644 --- a/packages/orderbook/src/seaport/seaport-lib-factory.ts +++ b/packages/orderbook/src/seaport/seaport-lib-factory.ts @@ -14,15 +14,6 @@ function convertToV6Provider( ): JsonRpcProvider { const overwrittenProvider = new JsonRpcProvider(provider.connection.url); - // eslint-disable-next-line no-console - console.log('Overwritten provider getSigner method'); - // eslint-disable-next-line no-console - console.log(overwrittenProvider.getSigner); - // eslint-disable-next-line no-console - console.log('Overwriter provider methods'); - // eslint-disable-next-line no-console - console.log(JSON.stringify(Object.keys(overwrittenProvider), null, 2)); - // Need to override the getSigner method to mimic V5 behaviour overwrittenProvider.getSigner = async function getSigner( address?: number | string, @@ -47,6 +38,15 @@ function convertToV6Provider( return new JsonRpcSigner(this, address); }; + // eslint-disable-next-line no-console + console.log('Overwritten provider getSigner method'); + // eslint-disable-next-line no-console + console.log(overwrittenProvider.getSigner); + // eslint-disable-next-line no-console + console.log('Overwriter provider methods'); + // eslint-disable-next-line no-console + console.log(JSON.stringify(Object.keys(overwrittenProvider), null, 2)); + return overwrittenProvider; } diff --git a/packages/orderbook/src/seaport/seaport.test.ts b/packages/orderbook/src/seaport/seaport.test.ts index ab964c8adc..ebd4ef59d9 100644 --- a/packages/orderbook/src/seaport/seaport.test.ts +++ b/packages/orderbook/src/seaport/seaport.test.ts @@ -460,6 +460,7 @@ describe('Seaport', () => { mockedSeaportJs.fulfillOrders( deepEqual({ accountAddress: fulfiller, + recipientAddress: fulfiller, fulfillOrderDetails: [ { order: { diff --git a/packages/orderbook/src/seaport/seaport.ts b/packages/orderbook/src/seaport/seaport.ts index 0bafe37db2..1d4cdb08dc 100644 --- a/packages/orderbook/src/seaport/seaport.ts +++ b/packages/orderbook/src/seaport/seaport.ts @@ -111,12 +111,15 @@ export class Seaport { const address = await signer.getAddress(); // eslint-disable-next-line no-console console.log(`Fulfiller address: ${address}`); + // eslint-disable-next-line no-console + console.log(`Provided address: ${account}`); } catch { // no-op - this is for temporary debugging } const { actions: seaportActions } = await seaportLib.fulfillOrders({ accountAddress: account, + recipientAddress: account, fulfillOrderDetails: [ { order: {