Skip to content

Commit

Permalink
import protobufjs/minimal instead of trying to use Reader directly
Browse files Browse the repository at this point in the history
  • Loading branch information
mehcode committed Nov 12, 2020
1 parent b02aceb commit 6862d8e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/transaction/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import {
TransactionBody as ProtoTransactionBody,
} from "@hashgraph/proto";
import AccountId from "../account/AccountId.js";

// eslint-disable-next-line node/no-extraneous-import
import { Reader } from "protobufjs";
import $protobuf from "protobufjs/minimal.js";

/**
* @typedef {import("bignumber.js").default} BigNumber
Expand Down Expand Up @@ -146,7 +144,7 @@ export default class Transaction extends Executable {
/** @type {Map<string, Map<AccountId, proto.ITransaction>>} */
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const transactions = new Map();
const reader = new Reader(bytes);
const reader = new $protobuf.Reader(bytes);
let first;

// eslint-disable-next-line no-constant-condition
Expand Down

0 comments on commit 6862d8e

Please sign in to comment.