1const HDWalletProvider = require('@truffle/hdwallet-provider')
2require('dotenv').config() 3
4module.exports = {
5 networks: {
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";
When using a module, avoid using a variable and instead use chaining with the getter syntax. It produces readable code and avoids variable collisions or leaks.
app.controller('MyController', function () {
// ...
});
angular.module('myModule').controller('MyController', function () {
// ...
});