Skip to content

Remove Build Folder from Commits #28

Description

@cbdotguru

What is it?

Stop committing the build folder as referenced in #24 by @gustavoguimaraes

Problem

Build folder pollutes the repo

Solution

Adopt the following pattern for using libraries:

Create a config file with a Json as such:

{
  Ethereum: {
    address: {
      Library: '0x859e7E76cAeDe3b642FC84862809f60c055cb731',
      AnotherLibrary: '0x1e2F058C43ac8965938F6e9CA286685A3E63F24E',
    }
  }
}

and access it as:

const config = require('../node_modules/config') // using the config library here
const LibraryAddress = config.get('Ethereum.address.Library')

const Library = artifacts.require('./Library.sol')
const library = Library.at(LibraryAddress)

Steps to implement

  • Structure the project to include this workflow
  • Add the build folder to .gitignore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions