
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
hardhat-decode
Advanced tools
This is a hardhat plugin used to decode smart contract's error、event、function-data and function-result.
We also provide a website easydecode.dev for commonly use case.
$ npm install --save-dev hardhat-decode
# or
$ yarn add --dev hardhat-decode
npx hardhat decode error --contract <contract name> <error hex string>npx hardhat decode event --contract <contract name> --topics 0x...Topic1,0x...Topic2,0x...Topic3 --data 0x...Datanpx hardhat decode function-data --contract <contract name> <function data hex string>npx hardhat decode function-result --contract <contract name> <function result hex string>For example, we have an ERC20 contract in our hardhat project, named USDT and we want to decode a unknown function-data:
$ npx hardhat decode function-data --contract USDT 0x40c10f19000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000989680
mint(address,uint256)
>>> 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
>>> 10000000
Load plugin in Hardhat config:
require('hardhat-decode');
// or
import 'hardhat-decode';
Enjoy!
FAQs
Hardhat plugin for decode every thing with abi
We found that hardhat-decode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.