![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
hardhat-logger
Advanced tools
Show transaction params before hardhat send transaction to network
npm install hardhat-logger
or
yarn add hardhat-logger
Import the plugin in your hardhat.config.ts
or hardhat.config.js
:
//hardhat.config.ts
import {logger, MatcherType} from 'hardhat-logger'//or const {logger} = require('hardhat-logger');
// type MatcherType = string | string[] | RegExp | ((args: {method: string; params?: unknown[] | object;}) => boolean);
const matcher: MatcherType = /eth_getBalance/;
logger(matcher); // or without arguments logger()
here what you see if you run npx hardhat test
in Lock hardhat example
...
{
method: 'eth_getBalance',
params: [
'0x5FbDB2315678afecb367f032d93F642f64180aa3',
'0x3'
]
}
{
method: 'eth_getBalance',
params: [
'0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
'0x2'
]
}
...
Use the function for more complex filtering. It's also possible to change args to check some guesses on the fly.
//show only 'eth_sendTransaction' and change gas for the transaction
const matcher = (args: {method: string, params?: any}) => {
if(args.method === 'eth_sendTransaction') {
args.params[0].gas = '0x1C9C38';
return true;
}
return false;
};
logger(matcher);
and result
...
{
method: 'eth_sendTransaction',
params: [
{
gas: '0x1C9C38',
from: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
to: '0x5fbdb2315678afecb367f032d93f642f64180aa3',
data: '0x3ccfd60b',
maxFeePerGas: '0x32b1a62c',
maxPriorityFeePerGas: '0x0'
}
]
}
...
FAQs
Show transaction params befor hardhat send transaction to evm
We found that hardhat-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.