diff --git a/api/src/StamperWrapper.js b/api/src/StamperWrapper.js index 7755720f9bd886c15d4b620fd034b4545a99b240..a5b2cda575b65937698ffb7e718317099c3f76d3 100644 --- a/api/src/StamperWrapper.js +++ b/api/src/StamperWrapper.js @@ -3,7 +3,6 @@ const stamperInterface = require('../../contract/build/contracts/Stamper.json') class Stamper { constructor(web3, netId) { this.web3 = web3 - console.log(stamperInterface) let address = stamperInterface.networks[netId].address this.contract = new web3.eth.Contract(stamperInterface.abi, address) } diff --git a/api/src/index.js b/api/src/index.js index 5cf4fb5cdf58d631274c5654303f0cf6244a4538..953531905c69b73bd430bae043ec9cdf34a66f51 100644 --- a/api/src/index.js +++ b/api/src/index.js @@ -68,6 +68,9 @@ if (process.env.API_USER && process.env.API_PASS) { console.log("El servidor es PUBLICO") } +/***************************************************/ +// API Endpoints +/***************************************************/ app.post('/stamp', async (req, res) => { let netId = await web3.eth.net.getId() let ss = new Stamper(web3, netId)