Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Fix for #Issue6: ganache installation issue #7

Open
wants to merge 16 commits into
base: staging
Choose a base branch
from

Conversation

rcoscali
Copy link

@rcoscali rcoscali commented May 7, 2021

This PR has to be merged with (or before) the devportal PR #595
It propose a fix for truffle & ganache usage in the tuto (issue #6)

rcoscali added 2 commits May 7, 2021 11:39
ref: rsksmart#6
Install last Truffle
rm -rf ganache
@lgtm-com
Copy link

lgtm-com bot commented May 7, 2021

This pull request fixes 16 alerts when merging c4f656a into 05310a5 - view on LGTM.com

fixed alerts:

  • 7 for Direct state mutation
  • 3 for Superfluous trailing arguments
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Potentially inconsistent state update
  • 1 for Unused variable, import, function or class
  • 1 for Unneeded defensive code

@lgtm-com
Copy link

lgtm-com bot commented May 8, 2021

This pull request fixes 16 alerts when merging 181454b into 05310a5 - view on LGTM.com

fixed alerts:

  • 7 for Direct state mutation
  • 3 for Superfluous trailing arguments
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Potentially inconsistent state update
  • 1 for Unused variable, import, function or class
  • 1 for Unneeded defensive code

rcoscali added 3 commits May 9, 2021 15:42
Replaced EIP20.sol impl & InterfaceEIP20.sol (proposal) with ERC20.sol impl & IERP20.sol (proposed). Perhaps I'll add a not on IEP/ERC  for newbie even if I think most guys using such things should know what they are manipulating.
Updated deps through mcu
As I updated eip20 with ERC20, removed old IEP20
@rcoscali
Copy link
Author

rcoscali commented May 9, 2021

Updated old smart contract implem and interface (EIP20/InterfaceEIP20) from ConsenSys with implem & interface from OpenZeppelin:

  • ERC20.sol
  • IERC20.sol

@lgtm-com
Copy link

lgtm-com bot commented May 9, 2021

This pull request fixes 16 alerts when merging 1a5678b into 05310a5 - view on LGTM.com

fixed alerts:

  • 7 for Direct state mutation
  • 3 for Superfluous trailing arguments
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Potentially inconsistent state update
  • 1 for Unused variable, import, function or class
  • 1 for Unneeded defensive code

rcoscali added 2 commits May 9, 2021 17:45
Used smart contracts from OpenZeppelin
Added deps from openzeppelin ERC20 contracts
@lgtm-com
Copy link

lgtm-com bot commented May 9, 2021

This pull request fixes 16 alerts when merging 82a74f5 into 05310a5 - view on LGTM.com

fixed alerts:

  • 7 for Direct state mutation
  • 3 for Superfluous trailing arguments
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Potentially inconsistent state update
  • 1 for Unused variable, import, function or class
  • 1 for Unneeded defensive code

Changed token from EIP20 to ERC20 => adapted script accordingly
@lgtm-com
Copy link

lgtm-com bot commented May 9, 2021

This pull request fixes 16 alerts when merging 6eb0600 into 05310a5 - view on LGTM.com

fixed alerts:

  • 7 for Direct state mutation
  • 3 for Superfluous trailing arguments
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Potentially inconsistent state update
  • 1 for Unused variable, import, function or class
  • 1 for Unneeded defensive code

Adapt deployer script to adapt to erc20 constructor params
@lgtm-com
Copy link

lgtm-com bot commented May 9, 2021

This pull request fixes 16 alerts when merging 8bf4a5f into 05310a5 - view on LGTM.com

fixed alerts:

  • 7 for Direct state mutation
  • 3 for Superfluous trailing arguments
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Potentially inconsistent state update
  • 1 for Unused variable, import, function or class
  • 1 for Unneeded defensive code

rcoscali added 2 commits May 9, 2021 23:22
Contracts build are OpenZeppelin ones and truffle.config.js was generated from truffle init and was added keys as original truffle.config.js
@lgtm-com
Copy link

lgtm-com bot commented May 9, 2021

This pull request fixes 16 alerts when merging 2ac5b32 into 05310a5 - view on LGTM.com

fixed alerts:

  • 7 for Direct state mutation
  • 3 for Superfluous trailing arguments
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Potentially inconsistent state update
  • 1 for Unused variable, import, function or class
  • 1 for Unneeded defensive code

Add a new token by derivation from OpenZeppelin ERC20 one
Also updated solc version request (OpenZeppelin uses solc 0.8.0
@rcoscali
Copy link
Author

Do not merge please ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant