From 8a5c9791151ed23a45dfcab0bf285a9c578ec3dd Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Thu, 2 Apr 2020 12:34:38 +0300 Subject: [PATCH] make sender a string --- scripts/create-gift.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create-gift.js b/scripts/create-gift.js index d685531..293a2ea 100644 --- a/scripts/create-gift.js +++ b/scripts/create-gift.js @@ -4,7 +4,7 @@ import Web3 from 'web3'; import parseArgs from 'minimist'; import fs from 'fs'; -const argv = parseArgs(process.argv.slice(2), {boolean: ["deploy-factory", "deploy-bucket"], string: ["factory", "bucket", "token"], default: {"endpoint": "ws://127.0.0.1:8546", "validity-days": 365}}); +const argv = parseArgs(process.argv.slice(2), {boolean: ["deploy-factory", "deploy-bucket"], string: ["sender", "factory", "bucket", "token"], default: {"endpoint": "ws://127.0.0.1:8546", "validity-days": 365}}); const web3 = new Web3(argv["endpoint"]);