Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Make parseReserve import more explicit #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dvcrn
Copy link

@dvcrn dvcrn commented Jun 24, 2022

Hi, under certain conditions, the import to parseReserve being .. is causing errors

In our case (just normal bundling through rollup) we weren't able to use any instructions (like withdraw) that are depending on parseReserve. The transpiled javascript object (__1) ended up undefined, so the call to parseReserve fails

ScreenShot 1

ScreenShot 2

After making the import more explicit everything is fine again, transpiled now looks like this:

const parsedData = (_a = (0, state_1.parseReserve)(new web3_js_1.PublicKey(this.reserve.address), buffer)) === null || _a === void 0 ? void 0 : _a.info;

Probably an edge case in the handling of .. for imports

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant