mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 19:43:41 +00:00
move Web3 provider RPC URL into env variable
This commit is contained in:
parent
e517ecaf8e
commit
3b5ea319e2
@ -1,7 +1,7 @@
|
|||||||
{.used.}
|
{.used.}
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options], testutils/unittests, chronos, web3, stew/byteutils, stint, strutils
|
std/[options], testutils/unittests, chronos, web3, stew/byteutils, stint, strutils, os
|
||||||
|
|
||||||
import
|
import
|
||||||
waku/[node/peer_manager, waku_core],
|
waku/[node/peer_manager, waku_core],
|
||||||
@ -19,7 +19,10 @@ const TxHashSimpleTransfer* =
|
|||||||
TxHash.fromHex("0xa3985984b2ec3f1c3d473eb57a4820a56748f25dabbf9414f2b8380312b439cc")
|
TxHash.fromHex("0xa3985984b2ec3f1c3d473eb57a4820a56748f25dabbf9414f2b8380312b439cc")
|
||||||
const ExpectedToAddress = Address.fromHex("0x5e809a85aa182a9921edd10a4163745bb3e36284")
|
const ExpectedToAddress = Address.fromHex("0x5e809a85aa182a9921edd10a4163745bb3e36284")
|
||||||
const ExpectedValue = 200500000000005063.u256
|
const ExpectedValue = 200500000000005063.u256
|
||||||
const EthClient = "https://sepolia.infura.io/v3/470c2e9a16f24057aee6660081729fb9"
|
|
||||||
|
# To set up the environment variable (replace Infura with your provider if needed):
|
||||||
|
# $ export WEB3_RPC_URL="https://sepolia.infura.io/v3/YOUR_API_KEY"
|
||||||
|
const EthClient = os.getEnv("WEB3_RPC_URL")
|
||||||
|
|
||||||
suite "Waku Incentivization PoC Eligibility Proofs":
|
suite "Waku Incentivization PoC Eligibility Proofs":
|
||||||
## Tests for service incentivization PoC.
|
## Tests for service incentivization PoC.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user