Skip to content

Commit 8f165ef

Browse files
author
GitHub Actions Bot
committed
Updating ComputeExamples.md
1 parent d3d8b4a commit 8f165ef

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ComputeExamples.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ import {
143143
sendTx,
144144
configHelperNetworks,
145145
ConfigHelper,
146+
getNodeEndpointConfig,
146147
getEventFromTx,
147148
amountToUnits,
148149
isDefined,
@@ -436,9 +437,7 @@ We need to load the configuration. Add the following code into your `run(){ }` f
436437
const config = new ConfigHelper().getConfig(
437438
parseInt(String((await publisherAccount.provider.getNetwork()).chainId))
438439
)
439-
if (process.env.NODE_URL) {
440-
config.oceanNodeUri = process.env.NODE_URL
441-
}
440+
Object.assign(config, getNodeEndpointConfig())
442441
aquariusInstance = new Aquarius(config?.oceanNodeUri)
443442
providerUrl = config?.oceanNodeUri
444443
addresses = JSON.parse(

0 commit comments

Comments
 (0)