Questions tagged [decentralized-applications]

A decentralized application (Dapp, dApp or DApp) is an application that is run by many users on a decentralized network with trustless protocols.

259 questions
-1
votes
1 answer

"Out of Gas" when calling function twice quickly, but not when calls are spaced out?

I have a smart contract, and one of the functions (queue) is meant to allow users to find "matches" with other users of the smart contract. The logic is that if you call queue and there is nobody waiting, you are now the queued user / wallet…
Sloppy
  • 143
  • 1
  • 7
-1
votes
1 answer

Getting this error while installing DFX on my mac "curl: (60) SSL certificate problem: certificate has expired"

this is what i wrote to install it DFX_VERSION=0.9.3 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" I have node 16.14.0 installed but whenever i try this curl command or anyother curl command from other websites it shows that the…
-1
votes
1 answer

UnimplementedFeatureError: Copying of type struct {ContractName.StructName} memory[] memory to storage not yet supported

・I want to create the lottery contract that user can buy some lottery numbers. And, if the lottery was finished, I want to initialize it to create a new lottery. That's why we implemented it this way. lotChances = new LotChance[](0); But, I faced…
-1
votes
1 answer

Handling encryption of sensitive data stored in a smart contract

Supposedly, we have a decentralized app with two roles: the deployer of the smart contract (the admin) and others (participant). In order to "play the game" (do some actions in the app), admin has to verify participants first based on some data they…
-1
votes
2 answers

TypeError: (0 , _ethereum_Station__WEBPACK_IMPORTED_MODULE_4__.default) is not a function

I am unable to go ahead due to this error. This is the \stations\show.js file import React, { Component } from "react"; import { Card, Grid, Button } from "semantic-ui-react"; import Layout from "../../components/Layout"; import Station from…
-1
votes
1 answer

Can Someone explain ENUM, EMIT, EVENT in solidity for me

enum Status{ Vacant, Occupied } Status currentStatus; event Occupy(address _occupant, uint _value);
-1
votes
1 answer

Normal Android/windows app with blockchain storage

So I am building an android/windows app for a library management system that is close to release, as of now the app stores the data either locally (on device) or in the cloud (Gdrive, Onedrive). I have been studying about blockchain and I was…
-1
votes
1 answer

how can i get all ERC20 addresses in brownie to use in frontend

I want to create app like uniswap using brownie and react how can i access all tokens addresses and abi for my project and use it in frontend. How can i implement this in best optimized way ?
-1
votes
1 answer

What is decentralized-distributed system? Why Blockchain is decentralized-distributed system?

Distributed System have no single authority and each node is connected to every other node while in Decentralized System each node is not connected to every other node as it also have no single authority. Then how Blockchain is a…
-1
votes
1 answer

How to architect the DAPP blockchain EVM app?

I am developing the blockchain based application it is basically a ledger system to track who owns the item now. I want to ask where that item information comes from will it be keep in some centralized database and then I will do the tracking of…
-2
votes
1 answer

I am trying to build a facebook clone dapp using solana and next js. I followed the tutorial but i still run into this error

I followed the tutorial yet this error isn't being solved](https://i.stack.imgur.com/2qNEF.jpg) I tried to use {} instead of [] but still the same error occurs
Pranoz
  • 1
-2
votes
1 answer

How sushiswap exchange price between token, native token?

I am new to blockchain dev. so the first learning I fork sushiswap from github, so the code very not clear for me The difficulty understanding is how to get price tokens to exchange? example 1BNB will be 157.902SUSHI, I checked the network tab in…
Peter Jack
  • 847
  • 5
  • 14
  • 29
-2
votes
1 answer

How to repeat a function a number of times based off "quantity" variable

I am building a DApp but one that a user inputs the metadata and image to mint an NFT. That all works fine but I want to add a quantity function that actually mints the # of NFT's they input with a minimum of 1 and a maximum of 100. right now I have…
-2
votes
1 answer

Solidity : question about ERC20 token creation and pre sales (crowdsales)

I'm working on a new project that I'm launching soon. The dapp is almost ok, I'm writing the contracts. But I'm not sure I understood everything, if someone can help me :( I would like to create a token contract with a supply fix (like 1 million),…
Adr
  • 1
  • 1
-2
votes
1 answer

getttting temporary value dropped while borrow in solana smart contract

pub fn burn_liquidity(ctx: Context, _to: Pubkey) -> ProgramResult { let pool_account = &ctx.accounts.pool_account; let token1_account = &ctx.accounts.pool_token1_account; let token2_account =…
mohan A
  • 65
  • 2
  • 10
1 2 3
17
18