cashninjas / ninjas.cash Goto Github PK
View Code? Open in Web Editor NEWCash-Ninjas web3 frontend and minting website.
Home Page: https://ninjas.cash
Cash-Ninjas web3 frontend and minting website.
Home Page: https://ninjas.cash
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.
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
.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.