Skip to content
Snippets Groups Projects
Commit da2d9422 authored by Andrés Blanco's avatar Andrés Blanco
Browse files

cosmetica

parent cd3ef481
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment