From 59c5a635040766c8e0655cb7c894b19d7454ee6b Mon Sep 17 00:00:00 2001 From: Michael Liu Date: Thu, 29 Aug 2024 13:12:37 -0400 Subject: [PATCH] Fix tests --- packages/huma-sdk/tests/utils/maticGasStation.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/huma-sdk/tests/utils/maticGasStation.test.ts b/packages/huma-sdk/tests/utils/maticGasStation.test.ts index e469188..39e1505 100644 --- a/packages/huma-sdk/tests/utils/maticGasStation.test.ts +++ b/packages/huma-sdk/tests/utils/maticGasStation.test.ts @@ -87,9 +87,9 @@ describe('getDefaultGasOptions', () => { test('should get gas options from Polygon gas station if network is Polygon and gas options are not set', async () => { ;(requestGet as jest.Mock).mockResolvedValue({ - fast: { - maxFee: '50', - maxPriorityFee: '50', + result: { + FastGasPrice: '50', + suggestBaseFee: '.05', }, }) @@ -97,7 +97,7 @@ describe('getDefaultGasOptions', () => { expect(result).toEqual({ maxFeePerGas: ethers.BigNumber.from('50000000000'), - maxPriorityFeePerGas: ethers.BigNumber.from('50000000000'), + maxPriorityFeePerGas: ethers.BigNumber.from('49950000000'), }) }) })