From 92e73f4202e14368ac04b1e85f2988fbed689fb5 Mon Sep 17 00:00:00 2001 From: uivlis Date: Thu, 3 Sep 2020 14:55:44 +0300 Subject: [PATCH] Fix infura uris, add new deployed address, fix saving new address to file --- .DS_Store | Bin 0 -> 8196 bytes deployed-hmtoken/hmt.address.json | 3 +++ migrations/2_deploy_contracts.js | 2 +- truffle.js | 8 ++++---- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .DS_Store create mode 100644 deployed-hmtoken/hmt.address.json diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..b19f7696ca8ae669a556d00b7b92764eca4b0be3 GIT binary patch literal 8196 zcmeHM-A)rh6#fPZ6iOogByicp8*gZWx5lJEt2R*~Ruk?}S}4f2+w=z^-t>ld@Y*|H z!e) z)ay9Ae9`)n(wd^yka`iCzNT4BY0jd77#)t>qZf^=2j(<|xP^6W;3Zz;6>3<+8=lp8 z{S+m%GvocZ1bTy(>gS<#_Me>DFOa2ObUCjWCp>Fn8T%Y{!0SU^r+6_OePZix@KI}} z-iX^>dM)iS`-Nk+<4PrYqjEQekr?wa zc2&1IN}r?lXyHQ&Ba!7|?k17oVdTKp_a)?g2@Z$%=^TvEw84>P5hj%fQnNsN1% z^RyOgo@^5%XG7)-dGv8Q^J8b`x4EuT0Sb*rf71s52)^p)U>ieozcB%Da*z#)YG`;#gcEcZ8 zc=B{})RfFl)gR%<)0?ASkNofPBQdNI<=d7_@h~h4*Q8BaKbK_xUmgGc|C-DuxEUA- z3|xf)ldIG#YeXh{>x>QAYZuwyvP%=ak(CPJLAT?Sx*exH`@@juMXCy>oXC-tyu8f^2780&%f33tM>*y|9=77N|y`( literal 0 HcmV?d00001 diff --git a/deployed-hmtoken/hmt.address.json b/deployed-hmtoken/hmt.address.json new file mode 100644 index 00000000..3ef41335 --- /dev/null +++ b/deployed-hmtoken/hmt.address.json @@ -0,0 +1,3 @@ +{ + "address": "0x4C18A2E51edC5043e9c4B6b0757990A4Ac13797f" +} \ No newline at end of file diff --git a/migrations/2_deploy_contracts.js b/migrations/2_deploy_contracts.js index cdef67b5..bce9ff83 100644 --- a/migrations/2_deploy_contracts.js +++ b/migrations/2_deploy_contracts.js @@ -4,7 +4,7 @@ const path = require('path'); const HMToken = artifacts.require('./HMToken.sol'); -const ADDRESS_OUTPUT_FILENAME = '/deployed-hmtoken/hmt.address.json'; +const ADDRESS_OUTPUT_FILENAME = './deployed-hmtoken/hmt.address.json'; module.exports = (deployer) => { deployer diff --git a/truffle.js b/truffle.js index 70d68185..9d86d782 100644 --- a/truffle.js +++ b/truffle.js @@ -14,20 +14,20 @@ module.exports = { network_id: '*' }, live: { - provider: () => new HDWalletProvider(MNEMONIC, `https://mainnet.infura.io/${INFURA_TOKEN}`), + provider: () => new HDWalletProvider(MNEMONIC, `https://mainnet.infura.io/v3/${INFURA_TOKEN}`), network_id: '1', }, kovan: { - provider: () => new HDWalletProvider(MNEMONIC, `https://kovan.infura.io/${INFURA_TOKEN}`), + provider: () => new HDWalletProvider(MNEMONIC, `https://kovan.infura.io/v3/${INFURA_TOKEN}`), network_id: '2', }, ropsten: { - provider: () => new HDWalletProvider(MNEMONIC, `https://ropsten.infura.io/${INFURA_TOKEN}`), + provider: () => new HDWalletProvider(MNEMONIC, `https://ropsten.infura.io/v3/${INFURA_TOKEN}`), network_id: '3', gas: 4700000, }, rinkeby: { - provider: () => new HDWalletProvider(MNEMONIC, `https://rinkeby.infura.io/${INFURA_TOKEN}`), + provider: () => new HDWalletProvider(MNEMONIC, `https://rinkeby.infura.io/v3/${INFURA_TOKEN}`), network_id: '4', }, },