Skip to content

Commit

Permalink
chore: move rpc urls to env
Browse files Browse the repository at this point in the history
  • Loading branch information
Luisfc68 committed Apr 25, 2024
1 parent 217a812 commit 48d3015
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion example.env
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
ALPHANET_RPC_URL=http://127.0.0.1:4444
ALPHANET_RPC_URL=http://127.0.0.1:4444
MAINNET_RPC_URL=https://public-node.rsk.co
TESTNET_RPC_URL=https://public-node.testnet.rsk.co
6 changes: 3 additions & 3 deletions truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
rskDevelopment: {
provider: () => new HDWalletProvider({
mnemonic,
providerOrUrl: `https://public-node.testnet.rsk.co`,
providerOrUrl: process.env.TESTNET_RPC_URL,
derivationPath: "m/44'/60'/0'/0/",
pollingInterval: 30000,
}),
Expand All @@ -50,7 +50,7 @@ module.exports = {
rskTestnet: {
provider: () => new HDWalletProvider({
mnemonic,
providerOrUrl: `https://public-node.testnet.rsk.co`,
providerOrUrl: process.env.TESTNET_RPC_URL,
derivationPath: "m/44'/37310'/0'/0/",
pollingInterval: 30000,
}),
Expand All @@ -60,7 +60,7 @@ module.exports = {
rskMainnet: {
provider: () => new HDWalletProvider({
mnemonic,
providerOrUrl: `https://public-node.rsk.co`,
providerOrUrl: process.env.MAINNET_RPC_URL,
derivationPath: "m/44'/137'/0'/0/",
pollingInterval: 30000,
}),
Expand Down

0 comments on commit 48d3015

Please sign in to comment.