Skip to content

Commit 7ab7ad6

Browse files
FIX: Imports for Functions are available on Mainnet (#2559)
* Imports for Functions are available on Mainnet * Remove redundant sentence in DenoImportNotes.mdx * Remove redundant note in JavaScript example --------- Co-authored-by: Amine E. <aelmanaa@users.noreply.github.com>
1 parent 3e73271 commit 7ab7ad6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/content/chainlink-functions/tutorials/simple-computation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ To run the example:
9494

9595
#### source.js
9696

97-
The Decentralized Oracle Network will run the [JavaScript code](https://github.com/smartcontractkit/smart-contract-examples/blob/main/functions-examples/examples/1-simple-computation/source.js). The code is self-explanatory and has comments to help you understand all the steps. **Note**: Functions requests with custom source code can use vanilla [Deno](https://deno.land/) but cannot use any require statements. Import statements and imported modules are supported only on testnets.
97+
The Decentralized Oracle Network will run the [JavaScript code](https://github.com/smartcontractkit/smart-contract-examples/blob/main/functions-examples/examples/1-simple-computation/source.js). The code is self-explanatory and has comments to help you understand all the steps.
9898

9999
The main steps are:
100100

src/features/chainlink-functions/common/DenoImportNotes.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { Aside } from "@components"
22

33
<Aside type="note">
4-
Functions requests with custom source code can use vanilla [Deno](https://deno.com/). Import statements and imported
5-
modules are supported only on testnets. You cannot use any require statements.
64

75
It is important to understand that importing an NPM package into Deno does not automatically ensure full compatibility. Deno and Node.js have distinct architectures and module systems. While some NPM packages might function without issues, others may need modifications or overrides, especially those relying on Node.js-specific APIs or features Deno does not support.
86

0 commit comments

Comments
 (0)