luxtagofficial / Apostille-library

The official Apostille Typescript repository

Home Page:https://apostille.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apostille create function does not check correct chain

jontey opened this issue · comments

Describe the bug
If apostille is created on a private chain, the isCreated check in Apostille.create defaults to api.beta.cataput.mijin.io for MIJIN_TEST. (Look at line 73 in src/ApostilleAccount.ts)

How to Fix
One way is to allow the create function to receive urls to pass to the isCreated function.

A second way is to modify setUrls to save the urls on the object, instead of the current implementation which is more of a getUrls than a setUrls

Fixed in v6.0.2