Skip to main content

Questions tagged [solidity]

Solidity is a language for smart contracts for blockchain technologies like Ethereum. It is designed to compile code for the Ethereum Virtual Machine. Use this tag for questions about programming smart contracts using the Solidity language.

-2 votes
0 answers
18 views

What is the easiest way to migrate a crypto SaaS written in Rust, onto EVM compatible chains without rewriting everything completely?

one of our client websites https://odinbot.io has started on Solana network, all SOL projects are written in Rust and are a completely different language than Solidity, does anyone know of an ...
Backlinkz.io's user avatar
0 votes
0 answers
12 views

Moving logging functionalities further out of test code

Context To verify the relevant test cases are reached during fuzz testing with foundry, I wrote a system that creates a new log file at the start of a fuzz test, and then uses that to log the which ...
a.t.'s user avatar
  • 2,584
0 votes
0 answers
18 views

Error of gateway urls while uploading encrypted secrets to DON - Chainlink Functions

Body I'm trying to upload encrypted secrets to Chainlink Decentralized Oracle Network (DON) gateways using the @chainlink/functions-toolkit in my RWA project. However, I'm encountering an error when ...
DEEPAK AGASHE's user avatar
0 votes
0 answers
11 views

Can I call a function to get data from other contract in smart contract with FunC in TON blockchain?

I have a question with TON blockchain Suppose that, I have a smart contract, I want call a function of other smart contract to get data to continue process. How to do it in FunC: () recv_internal(int ...
Tho Bui Ngoc's user avatar
-2 votes
2 answers
15 views

How to get data feed for eth to usd, to add information in solidity

How can I get solidity code for getting latest eth-usd price update to add in solidity/remix? I am just a beginner. I have tried chain link data feed, but its only giving data for btc-usd I want to ...
Alifaeen Ali's user avatar
0 votes
0 answers
34 views

async/await is not yet supported in Client Components in dApp with nextjs

I am attempting to create an app which needs to interact with smart contracts, and when attempting to supply a provider for web3.eth.Contract I get the error async/await is not yet supported in Client ...
Ahmed B's user avatar
  • 49
-2 votes
0 answers
14 views

solidity contract function execution failed

I am trying to build a test contract for flash loan arbitrage in solidity for polygon blockchain. Contract deployed successfully, but when I am calling the function : fn_RequestFlashLoan I am getting ...
Haren Sarma's user avatar
  • 2,499
0 votes
0 answers
7 views

Decoding a mapping in Solidity: Type library IterableMapping is not implicitly convertible to expected type struct IterableMapping.Map storage pointer

Context I am storing the content of the following mapping into a file: pragma solidity >=0.8.25 <0.9.0; import "test/TestConstants.sol"; library IterableMapping { // Iterable ...
a.t.'s user avatar
  • 2,584
0 votes
0 answers
12 views

ERC-20 Token appears on Sepolia network but not on Polygon network

I have attempted to create an ERC-20 token, and deployed the contract on both Sepolia and Polygon, it appeared successfully as a token on Sepolia network but not on Polygon. etherscan polygonscan ...
Ahmed B's user avatar
  • 49
0 votes
0 answers
13 views

Solidity ERC721, how to correctly extends several base contracts

I'm very new to solidity programming, and I'm following an old tutorial based on 0.5.0. I've tried to modify the tutorial for a recent version. I'm trying to create a ECR721 token, and I have code ...
JohannisK's user avatar
  • 537
0 votes
1 answer
21 views

Error: "execution reverted" when calling Chainlink Data Feed function in Remix on Polygon Cardano Testnet

I am trying to use the ETH/USD price data feed on the Polygon Cardano Testnet via Remix. I deployed the following contract successfully: // SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import ...
Divyakrishnan R's user avatar
0 votes
1 answer
12 views

Error at the time of verification and publication in Sipolia test network

I deployed a simple token with Remix IDE and Metamask I am getting this error when verifying and issuing token on Sipolia Testnet Error => Error! Unable to generate bytecode and ABI contracts But ...
Mohsen's user avatar
  • 1
0 votes
0 answers
11 views

GetAmountsOut Execution Reverted Even if pair exists Sepolia TestNet

I am trying to do swap my sepoliaETH for some token. Now when i try to get amountsOut for pairs which exists and have reserves , the txn doenst do through and gets Reverted. Below is my code. const ...
Aman's user avatar
  • 27
-2 votes
0 answers
16 views

I encountered an error in my smart contract (Solidity) and I'm not sure where it's coming from

I have been working on a shopping application. While designing the smart contract, I encountered constant errors that I can't figure out where I'm going wrong. I tried ChatGPT but it didn't provide a ...
Abhishek kumar's user avatar
0 votes
0 answers
20 views

I am trying to make the fork of Pancakeswap and I am currently being stuck on generating my own token pairs address for my factory and init_hash_code

As the title said, I have my own implementations of cake token, factory and router. As far as I got it, the factory and init_code_hash are correct. The issue is that even after changing them in ...
Albert Lipaev's user avatar

15 30 50 per page
1
2 3 4 5
448