New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ethers

Package Overview
Dependencies
Maintainers
1
Versions
323
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethers - npm Package Compare versions

Comparing version

to
3.0.21

2

package.json
{
"name": "ethers",
"version": "3.0.20",
"version": "3.0.21",
"description": "Ethereum wallet library.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -49,2 +49,14 @@ 'use strict';

function verifyType(type) {
// These need to be transformed to their full description
if (type.match(/^uint($|[^1-9])/)) {
type = 'uint256' + type.substring(4);
} else if (type.match(/^int($|[^1-9])/)) {
type = 'int256' + type.substring(3);
}
return type;
}
function parseParam(param, allowIndexed) {

@@ -64,2 +76,3 @@ function throwError(i) {

delete node.state.allowType;
node.type = verifyType(node.type);
node.components = [ { type: '', name: '', parent: node, state: { allowType: true } } ];

@@ -71,2 +84,4 @@ node = node.components[0];

delete node.state;
node.type = verifyType(node.type);
var child = node;

@@ -83,2 +98,3 @@ node = node.parent;

delete node.state;
node.type = verifyType(node.type);

@@ -97,2 +113,3 @@ var sibling = { type: '', name: '', parent: node.parent, state: { allowType: true } };

if (node.type !== '') {
node.type = verifyType(node.type);
delete node.state.allowType;

@@ -161,3 +178,6 @@ node.state.allowName = true;

delete parent.state;
parent.type = verifyType(parent.type);
//verifyType(parent);
return parent;

@@ -360,4 +380,4 @@ }

localName: localName,
name: 'boolean',
type: 'boolean',
name: 'bool',
type: 'bool',
encode: function(value) {

@@ -822,2 +842,3 @@ return uint256Coder.encode(!!value ? 1: 0);

function getTupleParamCoder(coerceFunc, components, localName) {
if (!components) { components = []; }
var coders = [];

@@ -832,3 +853,2 @@ components.forEach(function(component) {

function getParamCoder(coerceFunc, param) {
var coder = paramTypeSimple[param.type];

@@ -835,0 +855,0 @@ if (coder) { return coder(coerceFunc, param.name); }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display