Skip to content

Instantly share code, notes, and snippets.

@Chanutg
Created April 12, 2019 13:17
Show Gist options
  • Save Chanutg/08268de91c7956c4ef589c2c1c315af8 to your computer and use it in GitHub Desktop.
Save Chanutg/08268de91c7956c4ef589c2c1c315af8 to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { Drizzle } from "drizzle";
import HelloWorld from "./contracts/HelloWorld.json";
const options = {
contracts: [HelloWorld],
web3: {
fallback: {
type: "ws",
url: "ws://127.0.0.1:9545",
},
},
};
const drizzle = new Drizzle(options);
ReactDOM.render(<App drizzle={drizzle}/>, document.getElementById('root'));
serviceWorker.unregister();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment