Socket
Socket
Sign inDemoInstall

tso-data-models

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tso-data-models - npm Package Compare versions

Comparing version 1.0.139 to 1.0.140

2

lib/models/epoch/AssetSubmission.js

@@ -27,3 +27,3 @@ "use strict";

AssetSubmission.prototype.getSubmitPriceHash = function (tsoAddress) {
return ethers_1.ethers.utils.keccak256(ethers_1.ethers.utils.defaultAbiCoder.encode(["uint256", "uint256", "address"], [this.price, this.random, tsoAddress]));
return ethers_1.ethers.utils.keccak256(ethers_1.ethers.utils.defaultAbiCoder.encode(["uint256", "uint256", "address"], [this.price.toString(), this.random.toString(), tsoAddress]));
};

@@ -30,0 +30,0 @@ return AssetSubmission;

{
"name": "tso-data-models",
"version": "1.0.139",
"version": "1.0.140",
"description": "",

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

@@ -39,3 +39,3 @@ import { BigNumber, ethers } from "ethers";

getSubmitPriceHash(tsoAddress: string) {
return ethers.utils.keccak256(ethers.utils.defaultAbiCoder.encode(["uint256", "uint256", "address"], [this.price, this.random, tsoAddress]));
return ethers.utils.keccak256(ethers.utils.defaultAbiCoder.encode(["uint256", "uint256", "address"], [this.price.toString(), this.random.toString(), tsoAddress]));
}

@@ -42,0 +42,0 @@ }

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