mint-nft-template's People
Forkers
aldine c00renut chrislally ag-labs-sys letteldream thefirebox-io jsdanielq smartlabs-inc wepobid trender77 divi-code cryptofrye doodledpunks-ken web3dev1 williamsin9g 0xyittle sergeychernyakov albertxzzz doctorbinsibar linuxmahara mazzzystar zlexdl loobj126 xkrof johdavid thebobfishmint-nft-template's Issues
Will burn gas on mainnet
Он не запрещает отправить транзакцию на мейннете, но там нет такого контракта - транзакция упадет и потратит газ.
Можно сделать вот так, переключать автоматически на ринкеби:
const provider = window.ethereum
if (provider) {
const chainId = parseInt(4)
try {
await provider.request({
method: 'wallet_addEthereumChain',
params: [
{
chainId: `0x${parseInt(4).toString(16)}`,
chainName: 'Rinkeby Test Network',
nativeCurrency: {
name: 'ETH',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: [RPC_URL],
blockExplorerUrls: [`https://rinkeby.etherscan.io`],
},
],
})
return true
} catch (error) {
console.error('Failed to setup the network in Metamask:', error)
return false
}
Функция вызывается сразу, а не в onload
Add feature to mint multiple tokens in one go
network: use different contract address for different network
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.