Skip to content

Commit d3d8b4a

Browse files
author
GitHub Actions Bot
committed
Updating CodeExamples.md
1 parent d09f1cf commit d3d8b4a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

CodeExamples.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ import {
104104
sendTx,
105105
ConfigHelper,
106106
configHelperNetworks,
107+
getNodeEndpointConfig,
107108
amountToUnits,
108109
getEventFromTx,
109110
LoggerInstance
@@ -206,9 +207,7 @@ Next, we define the metadata that will describe our data asset. This is what we
206207
const config = new ConfigHelper().getConfig(
207208
parseInt(String((await publisherAccount.provider.getNetwork()).chainId))
208209
)
209-
if (process.env.NODE_URL) {
210-
config.oceanNodeUri = process.env.NODE_URL
211-
}
210+
Object.assign(config, getNodeEndpointConfig())
212211
aquarius = new Aquarius(config?.oceanNodeUri)
213212
providerUrl = config?.oceanNodeUri
214213
addresses = JSON.parse(

0 commit comments

Comments
 (0)