Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add unit test
  • Loading branch information
avkos committed May 21, 2024
commit 550f1cef2c942e867c4659af5fe92cc2c98a91bf
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
import { Web3Context } from 'web3-core';

import { FMT_BYTES, FMT_NUMBER } from 'web3-types';
import * as RpcMethodWrappers from '../../../src/rpc_method_wrappers';
import { getTransactionGasPricing } from '../../../src/utils/get_transaction_gas_pricing';
import { FMT_BYTES, FMT_NUMBER } from 'web3-types';

describe('getTransactionGasPricing', () => {
const web3Context = new Web3Context();
Expand All @@ -30,7 +30,7 @@ describe('getTransactionGasPricing', () => {
.mockImplementation(async () => gasPrice);
const getBlockSpy = jest
.spyOn(RpcMethodWrappers, 'getBlock')
// @ts-ignore
// @ts-expect-error only for testing purposes
.mockImplementation(async () => ({
baseFeePerGas: '0x0',
}));
Expand Down