From 87458f1f4429e0e1d8f995c5c343c1c0264f08a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20D=C3=ADaz?= Date: Wed, 14 Jun 2023 14:47:51 +0200 Subject: [PATCH 1/2] chore: attend PR review comments --- .env_example | 2 +- src/bin/w3gw.js | 2 +- src/lib/ethers/wrapper.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env_example b/.env_example index 050a556..69244e4 100644 --- a/.env_example +++ b/.env_example @@ -1,4 +1,4 @@ -# W3GW : mandatory +# W3GW: mandatory W3GW_PRIVATE_KEYS=[] W3GW_SEED_PHRASE="" diff --git a/src/bin/w3gw.js b/src/bin/w3gw.js index 9c4b45a..1588dd7 100644 --- a/src/bin/w3gw.js +++ b/src/bin/w3gw.js @@ -89,7 +89,7 @@ console.info( ) console.info() console.info( - 'Optionally, you can specify an ETH/JSONRPC endpoint different from the default one by setting:' + 'Optionally, you can specify a custom ETH/JSONRPC endpoint by setting:' ) console.info() console.info( diff --git a/src/lib/ethers/wrapper.ts b/src/lib/ethers/wrapper.ts index 78bc281..53c2aa7 100644 --- a/src/lib/ethers/wrapper.ts +++ b/src/lib/ethers/wrapper.ts @@ -380,7 +380,7 @@ class WalletWrapper { if (this.ethGasPriceFactor) { return (await this.getGasPrice()).toHexString() } else { - ;(await this.provider.getGasPrice()).toHexString() + (await this.provider.getGasPrice()).toHexString() } } From 11e9d138c941a4e15e31c0a31b9876c4a2f8ae80 Mon Sep 17 00:00:00 2001 From: tommy Date: Wed, 14 Jun 2023 16:49:47 +0200 Subject: [PATCH 2/2] docs: add release section in readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 63d1f5c..a20ba98 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,14 @@ A Web3 JSON-RPC provider gateway that handles accounts on its own using Ethers.j yarn build ``` +## Release + +This repository is released automatically in [DockerHub](https://github.com/witnet/web3-jsonrpc-gateway/blob/main/.github/workflows/docker-publish.yml) and [npm](https://github.com/witnet/web3-jsonrpc-gateway/blob/main/.github/workflows/npm-publish.yml) using GitHub actions when a new release is detected in the repository. To release: + +- Push a new tag. +- [Publish](https://github.com/witnet/web3-jsonrpc-gateway/releases/new) a new release. + + ## Running a single server instance, depending on destination provider type: ### Infura as destination provider: