owanhunte / ethereum-solidity-course-updated-code

Up-to-date Solidity / web3.js / Node.js / React / Next.js code for the udemy.com course Ethereum and Solidity: The Complete Developer's Guide.
183 stars 82 forks source link

Code improvement #38

Closed olenderhub closed 2 years ago

olenderhub commented 2 years ago

https://github.com/owanhunte/ethereum-solidity-course-updated-code/blob/9f9fc1048526699252222ceca9d1bb32c8c6e31d/kickstart/ethereum/compile.js#L49-L50

I think you can use

    const element = contracts[contract];
    fs.outputJsonSync(path.resolve(buildPath, `${contract}.json`), element);
owanhunte commented 2 years ago

@olenderhub Thanks for pointing that out. I thought I had actually made such a change to that file when I started the refactoring of this repo for Solidity 0.8. I'll make the change now.