Socket
Socket
Sign inDemoInstall

@ethersproject/abi

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/abi - npm Package Compare versions

Comparing version 5.6.0 to 5.6.1

2

lib.esm/_version.d.ts

@@ -1,2 +0,2 @@

export declare const version = "abi/5.6.0";
export declare const version = "abi/5.6.1";
//# sourceMappingURL=_version.d.ts.map

@@ -1,2 +0,2 @@

export const version = "abi/5.6.0";
export const version = "abi/5.6.1";
//# sourceMappingURL=_version.js.map

@@ -306,2 +306,3 @@ "use strict";

let reason = null;
let message = "";
let errorArgs = null;

@@ -327,2 +328,8 @@ let errorName = null;

}
if (errorName === "Error") {
message = `; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(errorArgs[0])}`;
}
else if (errorName === "Panic") {
message = `; VM Exception while processing transaction: reverted with panic code ${errorArgs[0]}`;
}
}

@@ -341,5 +348,5 @@ else {

}
return logger.throwError("call revert exception", Logger.errors.CALL_EXCEPTION, {
return logger.throwError("call revert exception" + message, Logger.errors.CALL_EXCEPTION, {
method: functionFragment.format(),
errorArgs, errorName, errorSignature, reason
data: hexlify(data), errorArgs, errorName, errorSignature, reason
});

@@ -346,0 +353,0 @@ }

@@ -1,2 +0,2 @@

export declare const version = "abi/5.6.0";
export declare const version = "abi/5.6.1";
//# sourceMappingURL=_version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "abi/5.6.0";
exports.version = "abi/5.6.1";
//# sourceMappingURL=_version.js.map

@@ -349,2 +349,3 @@ "use strict";

var reason = null;
var message = "";
var errorArgs = null;

@@ -370,2 +371,8 @@ var errorName = null;

}
if (errorName === "Error") {
message = "; VM Exception while processing transaction: reverted with reason string " + JSON.stringify(errorArgs[0]);
}
else if (errorName === "Panic") {
message = "; VM Exception while processing transaction: reverted with panic code " + errorArgs[0];
}
}

@@ -384,4 +391,5 @@ else {

}
return logger.throwError("call revert exception", logger_1.Logger.errors.CALL_EXCEPTION, {
return logger.throwError("call revert exception" + message, logger_1.Logger.errors.CALL_EXCEPTION, {
method: functionFragment.format(),
data: (0, bytes_1.hexlify)(data),
errorArgs: errorArgs,

@@ -388,0 +396,0 @@ errorName: errorName,

@@ -26,3 +26,3 @@ {

],
"gitHead": "b8cda5dffdcb688e38d7c6a0aec4c7b8b59c1af5",
"gitHead": "9e57e71dc0b410d4b9408beb43e233a55463d331",
"keywords": [

@@ -48,5 +48,5 @@ "Ethereum",

"sideEffects": false,
"tarballHash": "0x6f34a2acd8e71012fe5cf2b76b4b054ee4f492f8c17a97eab0790cc2bc3e8ccd",
"tarballHash": "0xa0d59e36648dee1339d01bd85e3132c9ab6c2dc090209350bb290ceeb2f364cf",
"types": "./lib/index.d.ts",
"version": "5.6.0"
"version": "5.6.1"
}

@@ -1,1 +0,1 @@

export const version = "abi/5.6.0";
export const version = "abi/5.6.1";

@@ -393,2 +393,3 @@ "use strict";

let reason: string = null;
let message = "";
let errorArgs: Result = null;

@@ -412,2 +413,7 @@ let errorName: string = null;

if (builtin.reason) { reason = errorArgs[0]; }
if (errorName === "Error") {
message = `; VM Exception while processing transaction: reverted with reason string ${ JSON.stringify(errorArgs[0]) }`;
} else if (errorName === "Panic") {
message = `; VM Exception while processing transaction: reverted with panic code ${ errorArgs[0] }`;
}
} else {

@@ -425,5 +431,5 @@ try {

return logger.throwError("call revert exception", Logger.errors.CALL_EXCEPTION, {
return logger.throwError("call revert exception" + message, Logger.errors.CALL_EXCEPTION, {
method: functionFragment.format(),
errorArgs, errorName, errorSignature, reason
data: hexlify(data), errorArgs, errorName, errorSignature, reason
});

@@ -430,0 +436,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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