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

@harmony-js/transaction

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/transaction - npm Package Compare versions

Comparing version 0.1.19 to 0.1.20

8

dist/index.cjs.js

@@ -728,12 +728,16 @@ /**

p.onData(function (data) { return __awaiter(_this, void 0, void 0, function () {
var blockNumber;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
blockNumber = this.messenger.chainPrefix === 'hmy'
? data.params.result.Header.number
: data.params.result.number;
this.emitTrack({
txHash: txHash,
attempt: this.confirmationCheck,
currentBlock: utils.hexToNumber(data.params.result.number),
currentBlock: utils.hexToNumber(blockNumber),
shardID: shardID,
});
if (!!this.blockNumbers.includes(data.params.result.number)) return [3 /*break*/, 5];
if (!!this.blockNumbers.includes(blockNumber)) return [3 /*break*/, 5];
return [4 /*yield*/, this.trackTx(txHash, shardID)];

@@ -740,0 +744,0 @@ case 1:

@@ -725,12 +725,16 @@ /**

p.onData(function (data) { return __awaiter(_this, void 0, void 0, function () {
var blockNumber;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
blockNumber = this.messenger.chainPrefix === 'hmy'
? data.params.result.Header.number
: data.params.result.number;
this.emitTrack({
txHash: txHash,
attempt: this.confirmationCheck,
currentBlock: hexToNumber(data.params.result.number),
currentBlock: hexToNumber(blockNumber),
shardID: shardID,
});
if (!!this.blockNumbers.includes(data.params.result.number)) return [3 /*break*/, 5];
if (!!this.blockNumbers.includes(blockNumber)) return [3 /*break*/, 5];
return [4 /*yield*/, this.trackTx(txHash, shardID)];

@@ -737,0 +741,0 @@ case 1:

@@ -726,12 +726,16 @@ /**

p.onData(function (data) { return __awaiter(_this, void 0, void 0, function () {
var blockNumber;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
blockNumber = this.messenger.chainPrefix === 'hmy'
? data.params.result.Header.number
: data.params.result.number;
this.emitTrack({
txHash: txHash,
attempt: this.confirmationCheck,
currentBlock: utils.hexToNumber(data.params.result.number),
currentBlock: utils.hexToNumber(blockNumber),
shardID: shardID,
});
if (!!this.blockNumbers.includes(data.params.result.number)) return [3 /*break*/, 5];
if (!!this.blockNumbers.includes(blockNumber)) return [3 /*break*/, 5];
return [4 /*yield*/, this.trackTx(txHash, shardID)];

@@ -738,0 +742,0 @@ case 1:

@@ -409,12 +409,16 @@ "use strict";

p.onData(function (data) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
var blockNumber;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0:
blockNumber = this.messenger.chainPrefix === 'hmy'
? data.params.result.Header.number
: data.params.result.number;
this.emitTrack({
txHash: txHash,
attempt: this.confirmationCheck,
currentBlock: utils_1.hexToNumber(data.params.result.number),
currentBlock: utils_1.hexToNumber(blockNumber),
shardID: shardID,
});
if (!!this.blockNumbers.includes(data.params.result.number)) return [3 /*break*/, 5];
if (!!this.blockNumbers.includes(blockNumber)) return [3 /*break*/, 5];
return [4 /*yield*/, this.trackTx(txHash, shardID)];

@@ -421,0 +425,0 @@ case 1:

{
"name": "@harmony-js/transaction",
"version": "0.1.19",
"version": "0.1.20",
"description": "transaction package for harmony",

@@ -25,3 +25,3 @@ "main": "dist/index.js",

},
"gitHead": "1a76aeebacecd1e3a1c1eca91517f2889e23171a"
"gitHead": "469f4a37b53e466271c0e8521832b99e9725091d"
}

@@ -452,9 +452,13 @@ import {

p.onData(async (data: any) => {
const blockNumber =
this.messenger.chainPrefix === 'hmy'
? data.params.result.Header.number
: data.params.result.number;
this.emitTrack({
txHash,
attempt: this.confirmationCheck,
currentBlock: hexToNumber(data.params.result.number),
currentBlock: hexToNumber(blockNumber),
shardID,
});
if (!this.blockNumbers.includes(data.params.result.number)) {
if (!this.blockNumbers.includes(blockNumber)) {
if (await this.trackTx(txHash, shardID)) {

@@ -461,0 +465,0 @@ this.emitConfirm(this.txStatus);

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

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