livepeer / protocol

Livepeer protocol
MIT License
154 stars 45 forks source link

Deployment on localhost does not work #550

Closed RiccardoBiosas closed 2 years ago

RiccardoBiosas commented 2 years ago

The current configuration for the localhost network in the hardhat.config does not allow to actually deploy the contracts on a local node instance (i.e: ganache) as it seems that, unless a mnemonic is specified, the unlocked accounts hardhat injects into the global scope at runtime are different from the accounts generated by the ganache instance.

RiccardoBiosas commented 2 years ago

After a little bit more digging, it seems I was able to fix the issue by downgrading my local ganache-cli from ganache v7.0.0-alpha.1 (@ganache/cli: 0.1.1-alpha.1, @ganache/core: 0.1.1-alpha.1 to Ganache CLI v6.12.2 (ganache-core: 2.13.2). However not all tests pass on a ganache environment, specifically the all the tests that rely on promise.all concurrent behavior (see here): i guess it's related to the nonce not being updated correctly when doing concurrent calls. Anyway since the scope of the issue was just the deployment of the contracts, I am closing it.