KOSASIH / pi-nexus-autonomous-banking-network

Use reference modules with the getter syntax JS-0514
Style
Minor
4 months ago4 months old
Avoid using a variable and instead use chaining with the getter syntax
 1const HDWalletProvider = require('@truffle/hdwallet-provider')
 2require('dotenv').config() 3
 4module.exports = {
 5  networks: {
Avoid using a variable and instead use chaining with the getter syntax
 1const ethers = require("ethers");
 2const Avalanche = require("avalanche").Avalanche;
 3require("dotenv").config(); 4
 5const privateKey = process.env.PRIVATEKEY;
 6const nodeURL = "https://api.avax-test.network/ext/bc/C/rpc";