ethers-decode-error
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83560