6,715 questions
0 votes
0 answers
27 views
Sending message from Etherenium Sepolia to Solana Testnet through hyperlane always has status pending
I am trying to send message from Etherenium Sepolia Smart Contract to Solana Testnet through Hypelane. Program on Ethereum Sepolia // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; ...
1 vote
1 answer
42 views
Why does my ERC20 contract revert when calling transferFrom?
I'm writing an ERC20-based contract in Solidity 0.8.21. When I call transferFrom, the transaction reverts even though the allowance and balance are sufficient. Here’s a simplified example: function ...
0 votes
1 answer
68 views
How to communicate to dapp wallet extensions (like MetaMask and Coinbase) from another extension, the way you can from a site
There's a few different ways of accessing dapp providers, but one of the most standard ways to check everything's good in the context you're running things is with a bog standard, window....
0 votes
1 answer
50 views
Chainlink function callback failing but computation is passing
Im working on a smart contract in solidity and im having issues with Chainlink function execution. I have this source code for the function: string private functionCode = "return Functions....
2 votes
1 answer
77 views
Ethers.js can call fetchMarketItems() fine, but PHP (web3p/web3.php) fails to decode the tuple[] return — how do I read struct[] results?
I have an NFT marketplace contract running on a local Hardhat node. The function below returns an array of structs: struct MarketItem { uint256 tokenId; address payable seller; address ...
0 votes
1 answer
83 views
How to transfer tokens from one contract to another contract
I have two contracts, A and B. Contract A defines my token. I want to transfer some of these tokens to Contract B. If I understood correctly: First, contract A should have some tokens to be able to ...
2 votes
1 answer
122 views
Uniswap swapping tokens issue
I am trying to swap two tokens A and B for which I have created the pool on the Uniswap testnet Sepolia. But in Remix, when I try to execute the swap, it gives an error. Everything else is working ...
-1 votes
1 answer
90 views
How to call name and Symbol of an XRC-20 (ERC-20) token on XDC/Ethereum?
I'm trying to interact with a deployed XRC-20 token contract on the XDC Network (EVM-compatible) using Rust and the alloy crate. I have already deployed my token using MetaMask and Remix IDE, and I ...
1 vote
0 answers
35 views
Experiencing error when Testing Raffle smart Contract
I'm working on testing a Chainlink VRF-based Raffle contract using Foundry, but I’m encountering a EvmError: Revert when running the test that checks whether the raffle correctly blocks entries while ...
0 votes
0 answers
43 views
How can I perform a meta-transaction or token transfer using the real Sepolia USDC (0x1c7D4...) via a smart contract?
I'm currently working on a meta-transaction system using a custom SimpleAccount contract (not based on standard ERC-4337 — no UserOperation, EntryPoint.handleOps, etc.). The goal is to make a smart ...
0 votes
0 answers
39 views
Tx signing fails with "rlp: input string too long for uint32" on ShardID field when using signed RLP
When trying to send a signed transaction on Harmony ONE, I receive the following error: rlp: input string too long for uint32, decoding into (types.Transaction)(types.txdata).ShardID This happens ...
1 vote
0 answers
67 views
Why does my Hardhat test fail with Transaction reverted after using evm_increaseTime?
I’m testing a Solidity smart contract for a project. A user buys a short-term policy that expires in 5 seconds. After advancing blockchain time by 10 seconds, I try to call claim(), but the ...
0 votes
0 answers
85 views
Why are some classes like EthereumAddress and EtherUnit undefined after upgrading to latest web3dart
I used web3auth and web3dart for a project 6 months ago, I need to update the project now and after updating to the latest version of web3dart (3.0.1, also tried 3.0.0), it shows some classes (...
0 votes
0 answers
81 views
Gnosis Safe - Enable module during safe creation
Here is my contracts: // SPDX-License-Identifier: LGPL-3.0-only pragma solidity ^0.8.20; import "hardhat/console.sol"; // import console.log; interface ISafe { ...
0 votes
2 answers
74 views
Contract Deployment Size Limit [closed]
I have a question regarding contract size limits on Ethereum. Suppose I have a smart contract whose size has increased by 24,945 bytes — does that mean it can no longer be deployed on the Ethereum ...