Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).on("click", "#confirm", function () {
- contract.methods.createDigitalArtFee().call().then(function (val) {
- contract.methods.mintDigitalArt(imageHash)
- .send({ from: userAccount, value: val })
- .on("transactionHash", function (_receipt) {
- clearImage();
- bootbox.alert("Now your digital art is being published. txhash:" + _receipt);
- })
- .on("receipt", function (_receipt) {
- })
- .on("error", function (_error) {
- console.log(_error);
- })
- });
- });
Add Comment
Please, Sign In to add comment