Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Tim Coulter
    @tcoulter
    Hello. Awesome to see everyone here.
    Newest spec info can be found here: https://github.com/ethpm/ethpm-spec
    El De-dog-lo
    @fubuloubu
    Thanks Tim!
    Tim Coulter
    @tcoulter
    np!
    Tim Coulter
    @tcoulter
    Anybody using Windows for Javascript? Come find me and I can show you some hacks to make the bash script work.
    Tim Coulter
    @tcoulter
    Instead of running npm run deploy:ganache, edit your ./scripts/deploy.sh and replace it with this file:
    $ cat ./scripts/deploy.sh
    #!/usr/bin/env bash
    
    # --------------------------------------------------------------------------------------------------
    # This script adapted from openzeppelin-solidity's test launch scripts
    # Source: (https://github.com/OpenZeppelin/openzeppelin-solidity/scripts/)
    # --------------------------------------------------------------------------------------------------
    
    
    # Exit as soon as a command fails.
    set -o errexit
    
    # Executes cleanup function at script exit.
    trap cleanup EXIT
    
    cleanup() {
      # Kill the client we started (if we started one and if it's still running).
      if [ -n "$CLIENT_PID" ] && ps -p "$CLIENT_PID" > /dev/null; then
        kill -9 "$CLIENT_PID"
      fi
    }
    
    if [ true ]; then
      PORT=8547
    else
      PORT=8545
    fi
    
    # Client detection
    client_running() {
      nc -z localhost "$PORT"
    }
    
    # Client runner
    start_client() {
      if [ true ]; then
        echo "Starting ganache client on port: $PORT"
        node_modules/.bin/ganache-cli --noVMErrorsOnRPCResponse --port "$PORT"> /dev/null &
      fi
    
      CLIENT_PID=$!
    }
    
    # Detect client
    if [ false ]; then
      echo "Using existing $NETWORK client on port: $PORT"
    else
      start_client
    fi
    
    # Deploy to specified network, resetting all previous deployments
    node_modules/.bin/truffle migrate --reset --network ganache --interactive
    Then run ./scripts/deploy.sh instead.
    EDIT: ONLY IF YOU'RE ON WINDOWS!
    Tomasvrba
    @Tomasvrba
    Hey, could I get the day0 truffle slides please?
    Tim Coulter
    @tcoulter
    One sec -
    Correction: Do not run npm run deploy:ganache. Instead, just run ./scripts/deploy.sh
    Actually, give that a sec. I need edit the sharing settings.
    Kevin Simper
    @kevinsimper
    Why can't you deploy your contract to your local genash?
    node 3-publish-to-registry.js localhost:8547
    Solange Gueiros
    @solangegueiros
    At Windows10, you must use powershell, and when un ./scripts/deploy.sh use git
    Tim Coulter
    @tcoulter
    @kevinsimper I believe Nick wasn't able to complete the third script.

    Hey, could I get the day0 truffle slides please?

    Update: Looks like internet is too slow to edit sharing settings (I think; google's not happy). Will post here once I can get it to work.

    Tomasvrba
    @Tomasvrba
    @tcoulter Thank you!
    Kevin Simper
    @kevinsimper
    Solution:
    Find the address with npx truffle networks in the escape-truffle folder.
    then find packageregistry and then use that for deployment
    $ node 3-publish-to-registry.js 0xb0Ba0e96B78382A943E3aA4A581d19CFfFf9b3e9
    Tim Coulter
    @tcoulter
    Tomasvrba
    @Tomasvrba
    Thanks @tcoulter :)
    Kevin Simper
    @kevinsimper
    Tim Coulter
    @tcoulter
    @kevinsimper Comment on your PR coming soon! (not by me)
    Matej NemĨek
    @yangwao
    gnidan/devcon-iv-ethpm#2 it should be npx truffle networks in readme and in your PR you have npx run networks :)