Skip to content

Commit 81f326d

Browse files
committed
🎨
1 parent 44f553e commit 81f326d

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

app/services/onboarding/issuer.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
logger = get_logger(__name__)
1313

14-
MAIN_NET = os.getenv("MAIN_NET", "false").lower() == "true"
14+
IS_MAINNET = os.getenv("IS_MAINNET", "false").lower() == "true"
1515

1616

1717
async def onboard_issuer(
@@ -98,13 +98,10 @@ async def onboard_issuer_no_public_did(
9898
)
9999
bound_logger.debug("Onboarding issuer that has no public DID")
100100

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)
101+
did_create = DIDCreate(
102+
method=did_method,
103+
network="mainnet" if IS_MAINNET else "testnet",
104+
)
108105

109106
issuer_did = await acapy_wallet.create_did(issuer_controller, did_create=did_create)
110107

0 commit comments

Comments
 (0)