Closed nemo83 closed 1 year ago
I learned something new about Javascript: imported variables are read-only.
I will change it so the modifiable global variables are in an object called config
instead
v0.13.4 should fix this.
https://www.hyperion-bt.org/helios-book/api/reference/globals.html
it worked. nice one and thanks as usual for the super quick fix
Hey,
I've recently noticed that address generation is defaulted to testnet, and that makes sense to me, and that it depends on the
IS_TESTNET
var in the helios module.Unfortunately, despite being a
var
theIS_TESTNET
cannot be changed innextjs
, and I would expect to be the same in the major frontend frameworks.Now, I think that the intent was to make the value of
IS_TESTNET
to be customised by the developer (var
instead ofconst
). So I was wondering if it was possible to wrapIS_TESTNET
along w/ the other customiseable flag, in another object, itself declared asconst
(as it can't be overriden anyway) and that has vars inside that can be changed.In the app I'm developing I'm seeing something similar is done by the fontawesome lib.
Example