Skip to main content
2 votes
1 answer
34 views

How do you do deploy a smart contract in native mobile app using Dart or Flutter (without using a webview)?

I know how to do this in Javascript with web3.js, but I don't know how to do this from a native mobile app written in Flutter/Dart. I have seen references for people having done this with web3Dart. ...
Stan Gregg's user avatar
0 votes
0 answers
26 views

Error: cannot estimate gas; transaction may fail or may require manual gas limit [See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT]

I have written test cases for the Bridge smart contract, which uses LayerZero for cross-chain communication. However, when I set up the Hardhat project and attempted to run the test cases, I ...
Nitesh Mehra's user avatar
1 vote
0 answers
14 views

Calling the ethereum EIP-4788 contract from go

I am trying to call the EIP-4788 contract from go. For development, I am using the Sepolia testnetwork. I have a local beacon chain client running connected to a geth instance running on the Sepolia ...
unsafe_where_true's user avatar
0 votes
1 answer
21 views

Smart contract is not deployed in my current network?

I'm new to blockchain. I setup a ganache network, added it to metamask. I'm trying to start an npm server and it works. On npm start, I'm being redirected to localhost:3000, where there are 4 options. ...
curious cat's user avatar
1 vote
1 answer
27 views

Can hashing be done in compact on the client side using persistentHash?

I'm using Midnight and learning compact. I'm hoping to get some clarification on the persistentHash function (export declare function persistentHash<a>(rt_type: CompactType<a>, value: a): ...
TechnicalError620's user avatar
-3 votes
0 answers
148 views

How to fetch Uniswap V4 pool price (sqrtPriceX96) in Rust (without Solidity)?

I'm building a Rust-based DeFi application that needs to fetch the current price from a Uniswap V4 pool. In Uniswap V3, I could simply call slot0() on the pool contract to get sqrtPriceX96: let ...
Александр's user avatar
0 votes
0 answers
53 views

Solana Anchor - Test Failed Error: Building IDL failed

I'm working on a Solana Anchor project and I'm running into a cryptic error when trying to run my tests: Finished `_test` profile [unoptimized + debugging] target(s) in 10.14s Running Unittests src/...
David Horjet's user avatar
0 votes
1 answer
37 views

Chainlink VRF: Created Subscription ID Mismatch Between On-Chain and Dashboard

I'm encountering an issue where the subscription ID returned by my script is different from the one shown on vrf.chain.link for the Sepolia network, which when i try to fund to the subid from my ...
Phc Chu Vaky Ramadan's user avatar
1 vote
1 answer
36 views

Is it expected for typescript target files generated by compactc to be empty?

I'm learning Midnight's tooling and compact language. I currently have two contracts: a.compact: module a { export sealed ledger num: Uint<8>; } b.compact: import "a"; constructor(...
Petlover620's user avatar
0 votes
0 answers
34 views

Can I implement a tax deduction feature in an ERC20 contract where the tax is deducted in BNB or ETH when a user swaps tokens on PancakeSwap?

The _transfer() function only handles ERC20 token transfers, so I can't implement any logic for ETH or BNB within it. I integrated some functions, but they were not callable on PancakeSwap. When I ...
Nitesh Mehra's user avatar
1 vote
0 answers
12 views

Error in adding a struct containing a mapping in an array in solidity

I am new to Solidity and am trying to add a struct containing a mapping to an array. However, this fails. When I run this on Remix I get a message transact to CampaignFactory.createCampaign pending ......
Shubham Tiwary's user avatar
1 vote
0 answers
24 views

Uniswap V3: Unable to Add Liquidity After Deploying ERC20 Token with Tax Mechanism

I am trying to add liquidity to Uniswap V3 for my ERC20 token, which has a 4% tax deduction on transfers. The tax mechanism ensures that whenever users transfer tokens, 4% is sent to the owner's ...
Nitesh Mehra's user avatar
0 votes
0 answers
29 views

I am unable to swap the token after adding liquidity to Uniswap V2

I have deployed an ERC20 contract on the Sepolia chain and added liquidity on Uniswap V2. However, when I tried to swap the token with ETH, the token price was not being calculated, and I was unable ...
Nitesh Mehra's user avatar
1 vote
1 answer
57 views

Risc Zero Proof Verification Fails On-Chain but Works Off-Chain

I am working on a smart contract that uses Risc Zero to verify proofs generated from a Rust program. I have successfully generated the seal, imageID, and journalDigest from the Risc Zero Rust program. ...
user59066's user avatar
0 votes
0 answers
22 views

Buy Operation for Jettons Results in Normal TON Transfer Instead of Token Purchase

I'm working on a script to purchase Blum tokens using the TEP-74 Jettons standard, but instead of triggering the buy operation, the transaction is being processed as a normal TON transfer. Below is ...
Okan Altunbaş's user avatar

15 30 50 per page
1
2 3 4 5
207