Guest User

Untitled

a guest
May 24th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $(document).on("click", "#confirm", function () {
  2.  
  3. contract.methods.createDigitalArtFee().call().then(function (val) {
  4. contract.methods.mintDigitalArt(imageHash)
  5. .send({ from: userAccount, value: val })
  6. .on("transactionHash", function (_receipt) {
  7. clearImage();
  8. bootbox.alert("Now your digital art is being published. txhash:" + _receipt);
  9. })
  10. .on("receipt", function (_receipt) {
  11. })
  12. .on("error", function (_error) {
  13. console.log(_error);
  14. })
  15. });
  16. });
Add Comment
Please, Sign In to add comment