Last active
January 18, 2022 21:55
-
-
Save petrosDemetrakopoulos/2fe5e2f291dcb576dbb8414879b6cca5 to your computer and use it in GitHub Desktop.
EthairBalloons CRUD API deploy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/deploy', (req, res) => { | |
Car.deploy(function (err, success) { | |
if (!err) { | |
res.send("Contract deployed successfully!") | |
} else { | |
res.send("Contract deployment error" + err) | |
} | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment