We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44f553e commit 81f326dCopy full SHA for 81f326d
1 file changed
app/services/onboarding/issuer.py
@@ -11,7 +11,7 @@
11
12
logger = get_logger(__name__)
13
14
-MAIN_NET = os.getenv("MAIN_NET", "false").lower() == "true"
+IS_MAINNET = os.getenv("IS_MAINNET", "false").lower() == "true"
15
16
17
async def onboard_issuer(
@@ -98,13 +98,10 @@ async def onboard_issuer_no_public_did(
98
)
99
bound_logger.debug("Onboarding issuer that has no public DID")
100
101
- if MAIN_NET:
102
- did_create = DIDCreate(
103
- method=did_method,
104
- network="mainnet",
105
- )
106
- else:
107
- did_create = DIDCreate(method=did_method)
+ did_create = DIDCreate(
+ method=did_method,
+ network="mainnet" if IS_MAINNET else "testnet",
+ )
108
109
issuer_did = await acapy_wallet.create_did(issuer_controller, did_create=did_create)
110
0 commit comments