Feat: gas price in header #5259
Annotations
6 errors and 1 warning
useGasPrice > should return the fetched gas price from the first oracle:
src/hooks/__tests__/useGasPrice.test.ts#L57
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "https://api.etherscan.io/api?module=gastracker&action=gasoracle"
Number of calls: 0
at Object.toHaveBeenCalledWith (/home/runner/work/safe-wallet-web/safe-wallet-web/src/hooks/__tests__/useGasPrice.test.ts:85:19)
|
useGasPrice > should return the fetched gas price from the second oracle if the first one fails:
src/hooks/__tests__/useGasPrice.test.ts#L97
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "https://api.etherscan.io/api?module=gastracker&action=gasoracle"
Number of calls: 0
at Object.toHaveBeenCalledWith (/home/runner/work/safe-wallet-web/safe-wallet-web/src/hooks/__tests__/useGasPrice.test.ts:127:19)
|
useGasPrice > should fallback to a fixed gas price if the oracles fail:
src/hooks/__tests__/useGasPrice.test.ts#L140
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "https://api.etherscan.io/api?module=gastracker&action=gasoracle"
Number of calls: 0
at Object.toHaveBeenCalledWith (/home/runner/work/safe-wallet-web/safe-wallet-web/src/hooks/__tests__/useGasPrice.test.ts:160:19)
|
useGasPrice > should be able to set a fixed EIP 1559 gas price:
src/hooks/__tests__/useGasPrice.test.ts#L173
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
at Object.toBe (/home/runner/work/safe-wallet-web/safe-wallet-web/src/hooks/__tests__/useGasPrice.test.ts:192:31)
|
useGasPrice > should use the previous block's fee data if there are no oracles:
src/hooks/__tests__/useGasPrice.test.ts#L201
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
at Object.toBe (/home/runner/work/safe-wallet-web/safe-wallet-web/src/hooks/__tests__/useGasPrice.test.ts:214:31)
|
useGasPrice > should keep the previous gas price if the hook re-renders:
src/hooks/__tests__/useGasPrice.test.ts#L223
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
at Object.toBe (/home/runner/work/safe-wallet-web/safe-wallet-web/src/hooks/__tests__/useGasPrice.test.ts:267:31)
|
CLAAssistant
The following actions uses node12 which is deprecated and will be forced to run on node16: contributor-assistant/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|