Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mliu committed Aug 29, 2024
1 parent ae47a35 commit 59c5a63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/huma-sdk/tests/utils/maticGasStation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@ 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',
},
})

const result = await getDefaultGasOptions({}, ChainEnum.Polygon)

expect(result).toEqual({
maxFeePerGas: ethers.BigNumber.from('50000000000'),
maxPriorityFeePerGas: ethers.BigNumber.from('50000000000'),
maxPriorityFeePerGas: ethers.BigNumber.from('49950000000'),
})
})
})

0 comments on commit 59c5a63

Please sign in to comment.