Paratii-Video / paratii-contracts

Paratii's core (smart contracts).
http://paratii.video
GNU General Public License v3.0
17 stars 8 forks source link

upgrade truffle #51

Open jellegerbrandy opened 6 years ago

jellegerbrandy commented 6 years ago

We are using truffle 4.1.6

upgradeing to 4.1.7 (which also upgrades solc to 0.4.23) breaks tests in paratii-js

Todo:

https://github.com/trufflesuite/truffle/releases https://github.com/ethereum/solidity/blob/develop/Changelog.md

luisfidelis commented 6 years ago

Hi Jelle. If no one is working on it, i would like to start.

jellegerbrandy commented 6 years ago

You are very welcome!

jellegerbrandy commented 6 years ago

to reproduce these errors in paratii-js, the road to take is to install paratii-js according to the instructions there, upgrade the reference to paratii-contracts in package.json, run a yarn install, and then run the tests.

luisfidelis commented 6 years ago

Yesterday i've followed these steps, but without change the reference of paratii-contracts i got some errors such as IPFS timeouts and failure when deploying contracts. It might be a trouble in my environment, i'll take a look.

jellegerbrandy commented 6 years ago

if you have any specific problems, could you signal them here? https://github.com/Paratii-Video/paratii-portal/issues/656

On Fri, Jun 1, 2018 at 3:24 PM Luis Philipe Fidelis < notifications@github.com> wrote:

Yesterday i've followed these steps, but without change the reference of paratii-contracts i got some errors such as IPFS timeouts and failure when deploying contracts. It might be a trouble in my environment, i'll take a look.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Paratii-Video/paratii-contracts/issues/51#issuecomment-393879364, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPuPd-x5sciSDitzkE02-FxDENWYEJLks5t4UCkgaJpZM4UMGUV .

luisfidelis commented 6 years ago

Yes, for sure. I'll try to run paratii-js tests again and investigate the problem.

luisfidelis commented 6 years ago

@jellegerbrandy I've noticed two problems when running paratii-js tests: 1) I couldn't use parity 1.11.1. After downgrading to 1.9.0 a lot of errors has disappeared. 2) ParatiiIPFSLocal tests doesn't work well 2.1) it('should allow for file upload', ... ) expects a different multihash of the file stored. 2.2) it('should add a directory to IPFS',...) getting Timeout error.

luisfidelis commented 6 years ago

@jellegerbrandy To fix the tests of paratii-js regarding Solidity 0.4.23/24, i had to add these parameters in the section params of chain.json:

   "eip140Transition": 0,
   "eip211Transition": 0,
   "eip214Transition": 0,
   "eip658Transition": 0

It enables byzantium features. Parity: 1.10.0