trufflesuite / drizzle

Reactive Ethereum dapp UI suite
907 stars 238 forks source link

Error initializing Drizzle - v1.5.3 #137

Closed theblock-dev closed 2 years ago

theblock-dev commented 2 years ago

Getting issue in initializing the Drizzle, the smart contract has been deployed to the local ganache client. image

image

One thing - why is drizzle trying to connect to port# 8545. The ganache client is running on 9545.

image

1) drizzleOptions.js

image

rsodre commented 2 years ago

You may need to add ganache as fallback:

const options = {
    contracts: [CryptoKittens],
    web3: {
        fallback: {
            type: 'ws',
            url: 'ws://127.0.0.1:7545', // the url you see on ganache UI
        },
    },
};
theblock-dev commented 2 years ago

Thanks, that works.