Skip to content

Commit

Permalink
fix decodeStream func (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolley authored Aug 21, 2023
1 parent 6ffa4ec commit 84f833c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/stream/solana/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import bs58 from "bs58";
import { streamLayout } from "./layout";
import { DecodedStream, Account, BatchItem, BatchItemResult } from "./types";
import { Stream } from "../common/types";
import { buildStreamType } from "../common/contractUtils";

const decoder = new TextDecoder("utf-8");
const LE = "le"; //little endian
Expand Down Expand Up @@ -111,6 +112,7 @@ export const formatDecodedStream = (stream: DecodedStream): Stream => {
pauseCumulative: stream.pauseCumulative,
lastRateChangeTime: stream.lastRateChangeTime.toNumber(),
fundsUnlockedAtLastRateChange: stream.fundsUnlockedAtLastRateChange,
type: buildStreamType(stream),
unlocked: function () {
return new BN(0);
}, //phantom method to preserve partial support of this object
Expand Down

0 comments on commit 84f833c

Please sign in to comment.