Skip to content

Commit

Permalink
feat: add mainnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenwang1996 committed Apr 21, 2020
1 parent 59f662b commit d7d0e5d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ function getConfig(env) {
switch (env) {

case 'production':
case 'development':
return {
networkId: 'default',
networkId: 'mainnet',
nodeUrl: 'https://rpc.nearprotocol.com',
contractName: CONTRACT_NAME,
walletUrl: 'https://wallet.nearprotocol.com',
helperUrl: 'https://helper.nearprotocol.com',
};
case 'development':
return {
networkId: 'testnet',
nodeUrl: 'https://rpc.testnet.nearprotocol.com',
contractName: CONTRACT_NAME,
walletUrl: 'https://wallet.testnet.nearprotocol.com',
helperUrl: 'https://helper.testnet.nearprotocol.com',
};
case 'devnet':
return {
networkId: 'devnet',
Expand Down

0 comments on commit d7d0e5d

Please sign in to comment.