Code Monkey home page Code Monkey logo

ninjas.cash's People

Contributors

mr-zwets avatar zquestz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ninjas.cash's Issues

No error on insufficient funds

I tried to mint a ninja and it just said building transaction 1/1.

When I looked into the console it says:

Error: Insufficient funds: available (110002000) < needed (110002511).

Given that the cost to mint is supposed to be 0.05 BCH, I don't intuitively understand what these numbers correspond to, but there should be a user-interface error shown that helps the user resolve the situation.

Allow multiple user-inputs in minting transaction

The cashscript code for the minting smart contract allows for the user to add multiple inputs.

  // Get userInput for mint
  const userAddress = await getUserAddress();
  const userUtxos = await electrumServer.getUtxos(userAddress);
  const networkFeeMint = 520;
  const filteredUserUtxos = userUtxos.filter(
    val => !val.token && val.satoshis >= mintPriceSats + networkFeeMint,
  );
  const bchBalanceUser = userUtxos.reduce((total, utxo) => utxo.token ? total : total + utxo.satoshis, 0n);
  const userInput = filteredUserUtxos[0];

this code could just as well select an array of userInputs to get to the required minting amount.

Next the fromP2PKH(userInput, userSig) in the transaction construction should be using this array of userInputs and then set the all signatures to be empty before adding each input to the listSourceOutputs .

Cannot visit mint website

After clicking to go to the mint from the main ninjas.cash website, I end up with a blank page and the following in my console output:

assets/mint-2346be2c.js:20 Uncaught SyntaxError: Unexpected reserved word

I am using the Falkon browser, which is based on QtWebEngine.

The page opens fine in Firefox.

Insufficient funds, take 2

After previous failure to mint due to unsuccessful funds, I sent another โ‚ฌ0.02 and tried again.

The result remained the same, so I assume the coin selection wants to take all the coins from a single address, but the wallet receive screen has no way to send to that specific address.

I am using the Zapit! wallet for this attempt in minting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.