Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New find replace #2

Open
tpmccallum opened this issue Nov 22, 2018 · 1 comment
Open

New find replace #2

tpmccallum opened this issue Nov 22, 2018 · 1 comment

Comments

@tpmccallum
Copy link
Contributor

1

addresses.js file

change

const initialState = RINKEBY;

to

const initialState = TRAVIS;

2

addresses.js file

change

export const setAddresses = networkId => {
  switch(networkId) {
    // Main Net
    case 1:
    case '1':
      return {
        type: SET_ADDRESSES,
        payload: MAIN,
      };
    // Rinkeby
    case 4:
    case '4':
    default:
      return {
        type: SET_ADDRESSES,
        payload: RINKEBY,
      };
  }
};

to

 export const setAddresses = networkId => {
  switch(networkId) {
    // Main Net
    case 1:
    case '1':
      return {
        type: SET_ADDRESSES,
        payload: MAIN,
      };
    // Travis
    case 19:
    case '19':
    default:
      return {
        type: SET_ADDRESSES,
        payload: TRAVIS,
      };
  }
};
@tpmccallum
Copy link
Contributor Author

This has to be done manually for now because there is no way to parse this code and replace the values automatically.
Will come up with a better way to do this if there is more time later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant