Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ethers-decode-error

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethers-decode-error - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

package.json
{
"name": "ethers-decode-error",
"description": "Decode ethers.js smart contract errors into human-readable messages",
"version": "2.1.0",
"version": "2.1.1",
"author": {

@@ -6,0 +6,0 @@ "name": "superical",

@@ -101,3 +101,3 @@ # ethers-decode-error

} catch (err) {
const { reason } = errorDecoder.decode(err)
const { reason } = await errorDecoder.decode(err)
// Prints "ERC20: transfer to the zero address"

@@ -120,3 +120,3 @@ console.log('Revert reason:', reason)

} catch (err) {
const { reason } = errorDecoder.decode(err)
const { reason } = await errorDecoder.decode(err)
// Prints "Arithmetic operation underflowed or overflowed outside of an unchecked block"

@@ -123,0 +123,0 @@ console.log('Panic message:', reason)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc