Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
16 changes: 2 additions & 14 deletions src/redux/blockchain/blockchainActions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// constants
import Web3EthContract from "web3-eth-contract";
import Web3 from "web3";
import abi from '../../abi';
import CONFIG from '../../config';
// log
import { fetchData } from "../data/dataActions";

Expand Down Expand Up @@ -34,20 +36,6 @@ const updateAccountRequest = (payload) => {
export const connect = () => {
return async (dispatch) => {
dispatch(connectRequest());
const abiResponse = await fetch("/config/abi.json", {
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
});
const abi = await abiResponse.json();
const configResponse = await fetch("/config/config.json", {
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
});
const CONFIG = await configResponse.json();
const { ethereum } = window;
const metamaskIsInstalled = ethereum && ethereum.isMetaMask;
if (metamaskIsInstalled) {
Expand Down