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

@eth-sdk/utils

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eth-sdk/utils - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

6

build/abi/decode.d.ts

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

import { IItemParam } from './interfaces';
export declare function decode<T = {
[key: string]: any;
}>(params: IItemParam[], data: string): T;
import { IItemParam, IDecoded } from './interfaces';
export declare function decode<T = IDecoded>(params: IItemParam[], data: string): T;

@@ -49,3 +49,5 @@ "use strict";

if (hex_1.isHex(data, 'data')) {
result = {};
result = {
length: 0,
};
data = data.slice(2);

@@ -85,3 +87,4 @@ for (let i = 0; i < params.length; i += 1) {

}
result = Object.assign(Object.assign({}, result), { [name]: value });
result = Object.assign(Object.assign({}, result), { [name]: value, [i]: value });
result.length += 1;
}

@@ -88,0 +91,0 @@ }

@@ -27,1 +27,6 @@ import { TType, TItemStateMutability, TItemType } from './types';

}
export interface IDecoded {
[key: string]: any;
[key: number]: any;
length: number;
}
{
"name": "@eth-sdk/utils",
"version": "0.1.3",
"version": "0.1.4",
"description": "Eth sdk utils",

@@ -5,0 +5,0 @@ "author": {

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