Skip to content

Commit

Permalink
Merge pull request #119 from orbs-network/removed-erc20
Browse files Browse the repository at this point in the history
Removed erc20
  • Loading branch information
Gil Amran committed Jul 7, 2019
2 parents b343bd8 + b69dc9f commit 5af07a9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 232 deletions.
3 changes: 0 additions & 3 deletions voting/client-web/src/contracts-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ module.exports = {
EthereumVotingContract: {
address: '0x30f855afb78758Aa4C2dc706fb0fA3A98c865d2d'
},
EthereumErc20Address: {
address: '0xff56Cc6b1E6dEd347aA0B7676C85AB0B3D08B0FA'
},
OrbsVotingContract: {
name: '_Elections'
}
Expand Down
3 changes: 0 additions & 3 deletions voting/client-web/src/services/MetamaskService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import Web3 from 'web3';
import {
erc20ContractFactory,
votingContractFactory,
guardiansContractFactory,
validatorsRegistryContractFactory,
Expand All @@ -21,14 +20,12 @@ export class MetamaskService implements IMetamask {
private validatorsRegistryContract;
private guardiansContract;
private votingContract;
private erc20Contract;

constructor() {
this.web3 = new Web3(ethereum as any);
this.validatorsRegistryContract = validatorsRegistryContractFactory(this.web3);
this.guardiansContract = guardiansContractFactory(this.web3);
this.votingContract = votingContractFactory(this.web3);
this.erc20Contract = erc20ContractFactory(this.web3);
}

private ipAddressToBytes(address: string) {
Expand Down
5 changes: 0 additions & 5 deletions voting/client-web/src/services/contracts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { erc20Abi } from '../constants/erc20-abi';
import * as contractsInfo from '../contracts-info';
import votingContractJson from '../contracts/OrbsVoting.json';
import guardiansContractJson from '../contracts/OrbsGuardians.json';
Expand Down Expand Up @@ -40,7 +39,3 @@ export const votingContractFactory = web3 => {
: contractsInfo.EthereumVotingContract.address,
);
};

export const erc20ContractFactory = web3 => {
return new web3.eth.Contract(erc20Abi, contractsInfo.EthereumErc20Address.address);
};
221 changes: 0 additions & 221 deletions voting/proxy-server/constants/erc20-abi.js

This file was deleted.

0 comments on commit 5af07a9

Please sign in to comment.