From 892063a08d9a69e3944bc835c25cd9ff980d9922 Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Fri, 29 Oct 2021 14:19:36 +0200 Subject: [PATCH] README --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 85bd5af..bb3e6a3 100644 --- a/README.md +++ b/README.md @@ -125,23 +125,23 @@ networks: { ``` ### Further Considerations -The constructor arguments file must have an _exportable_ field called `data`: -```js -exports.data = [ +The constructor arguments file must have an _exportable_ field called `data` in case you are using TypeScript: +```ts +const data = [ "arg1", "arg2", ... ]; +export { data }; ``` -Or if you are using TypeScript: -```ts -const data = [ +If you are using normal JavaScript: +```js +module.exports = [ "arg1", "arg2", ... ]; -export { data }; ``` The `gasLimit` field is set to to **1'500'000** by default because the `CREATE2` operations are a complex sequence of opcode executions. Usually the providers do not manage to estimate the gasLimit for these calls, so a predefined value is set.