Apostille create function does not check correct chain
jontey opened this issue · comments
Jonathan Tey commented
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
Jonathan Tey commented
Fixed in v6.0.2