From 34d43e66ca783afe1b895120b6c7ad58c8958c50 Mon Sep 17 00:00:00 2001 From: Thomas Huang Date: Fri, 22 Apr 2022 00:04:37 -0700 Subject: [PATCH] Update tx data for simpleSends and add isBestQuote to swaps data (#14496) --- test/data/mock-pending-transaction-data.json | 12 ++++++------ test/jest/mock-store.js | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/data/mock-pending-transaction-data.json b/test/data/mock-pending-transaction-data.json index 46c4452f5..62f072c10 100644 --- a/test/data/mock-pending-transaction-data.json +++ b/test/data/mock-pending-transaction-data.json @@ -19,7 +19,7 @@ "type": "0x2" }, "origin": "metamask", - "type": "sentEther", + "type": "simpleSend", "history": [ { "id": 6854191329910881, @@ -39,7 +39,7 @@ "type": "0x2" }, "origin": "metamask", - "type": "sentEther" + "type": "simpleSend" }, [ { @@ -95,7 +95,7 @@ "type": "0x2" }, "origin": "metamask", - "type": "sentEther", + "type": "simpleSend", "history": [ { "id": 6854191329910881, @@ -115,7 +115,7 @@ "type": "0x2" }, "origin": "metamask", - "type": "sentEther" + "type": "simpleSend" }, [ { @@ -172,7 +172,7 @@ "type": "0x2" }, "origin": "metamask", - "type": "sentEther", + "type": "simpleSend", "history": [ { "id": 6854191329910881, @@ -192,7 +192,7 @@ "type": "0x2" }, "origin": "metamask", - "type": "sentEther" + "type": "simpleSend" }, [ { diff --git a/test/jest/mock-store.js b/test/jest/mock-store.js index 443ccbe2c..73f4892b3 100644 --- a/test/jest/mock-store.js +++ b/test/jest/mock-store.js @@ -244,6 +244,7 @@ export const createSwapsMockStore = () => { fetchTime: 1354, aggregator: 'TEST_AGG_2', aggType: 'AGG', + isBestQuote: true, slippage: 2, sourceTokenInfo: { address: '0x6b175474e89094c44da98b954eedeac495271d0f',