Skip to content

Commit b8e65d1

Browse files
committed
add: ethereum default config
1 parent 4a91740 commit b8e65d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adapters/ethereum/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function getCoreContractForChannel(cfg, channel, ethProvider) {
184184
const provider =
185185
ethProvider ||
186186
(depositChainId && new providers.JsonRpcProvider(cfg.supportedChainIdsByRPC[depositChainId])) ||
187-
getDefaultProvider(cfg.NETWORK)
187+
getDefaultProvider(cfg.ETHEREUM_NETWORK)
188188
return new Contract(cfg.chainIdsByCoreAddr[depositChainId], coreABI, provider)
189189
}
190190

docs/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
| CREATORS_WHITELIST | List of accepted channel creators; leave empty for all | [] |
2020
| MINIMAL_DEPOSIT | Least amount a channel is required to have to be accepted | 0 |
2121
| TOKEN_ADDRESS_WHITELIST | List of valid payment tokens address; leave empty for all | [] |
22-
| NETWORK | network id | homestead |,
22+
| ETHEREUM_NETWORK | Ethereum network id | homestead |
2323
| VALIDATORS_WHITELIST | List of accepted channel validators; leave empty for all | [] |
2424
| chainIdsByCoreAddr | Supported chain id to the network deployed on chain contract core addr | { '1': '0x333420fc6a897356e69b62417cd17ff012177d2b' } |
2525
| supportedChainIdsByRPC | Map of a network chain id to the network rpc url | { '1': 'https://mainnet.infura.io/*' } |

0 commit comments

Comments
 (0)