All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
9 views

Unable to Execute VRF 2.5 Function in solidity

Im building a candle auction smart contract for my internship assignment, for getting complete random end time of the auction I'm using random number generator from chainlink. However when executing ...
Rohit Jambhulkar's user avatar
0 votes
0 answers
4 views

Is ICAP standard alive?

ICAP: Inter exchange Client Address Protocol aka Ethereum IBAN. Are there wallets that support ICAP? Example: ICAP: XE472EVKU3CGMJF2YQ0J9RO1Y90BC0LDFZ
Dmytro Shalaiev's user avatar
0 votes
0 answers
10 views

Contract call in Solidity assembly fails

I ran into this weird error where the following assembly call to a UniswapV2 pool swap function function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external fails when ...
Oluwatobi Femi's user avatar
0 votes
1 answer
11 views

Is it more gas efficient to store a string literal or its bytes representation?

I am aware that it is generally discouraged to store strings on-chain. However, in case there is no way around this, I have a few questions regarding the gas and memory efficiency of storing strings ...
rajohs's user avatar
  • 195
0 votes
0 answers
8 views

In Solidity, is division automatically unchecked?

I recently saw a Smart Contract with an unchecked division. However, I thought division was automatically unchecked, as: Biggest possible quotient = type(uint).max / 1 = type(uint).max (no overflow) ...
António Gonçalves's user avatar
0 votes
0 answers
9 views

Wagmi useWriteContract doesnt work all the time

For all the functions i've written to contract using useWriteContract in Wagmi, it reverts atleast 2 times before i refresh and it starts working. For example this function here, This is the solidity ...
Tarun Rao's user avatar
0 votes
0 answers
4 views

Reliable way to tell server-side whether request is originating from within Safe App iFrame

We are listed as a Safe App with https://drips.network/. The way we currently implement the "auto-connects to safe" requirement is by detecting whether our app is running in an iFrame client-...
Jason Efstathiou's user avatar
0 votes
0 answers
3 views

TREX-V4 Workflow

Has anyone implemented TREX-V4 which is based on ERC-3643 also known as Asset Tokenization I want to know the complete workflow of it. I have already worked on V3 version , just want to know about V4.
Jaskaran Singh's user avatar
0 votes
0 answers
4 views

Secure Connection between light client and Smart Contract

I would like to know the best(most secured) ways to securely interact between light client and smart contracts, Any tips and tricks are mostly welcome. Thanks for the time.
SKS's user avatar
  • 3
0 votes
0 answers
5 views

Adding additional information to the ethereum uri scheme just like BIP 0021

I have a use case where i want to generate qr code using which the users will pay me. But i do not have way to recognize transaction. Using Blockchain URI scheme we can add additional parameters like ...
muhammad Azeem's user avatar
0 votes
0 answers
3 views

Regarding Viem library. When to use sendTransaction, and when to use writeContract?

I'm building a UI, a simple send form. The form can send native token, and erc20 (eg, usdt) using the Viem library, while it doesn't specifically say, but it seems like: sendTransaction only works for ...
samplecode3300's user avatar
0 votes
0 answers
6 views

go -ethereum abi: cannot marshal in to go type: length insufficient 640 require 8225"

Im trying to decode a struct which basically is a tuple where i have this byte of data and passing the byte of data it will be able to be decoded into a struct in Go. My goal here is trying to create ...
0xbyterider's user avatar
0 votes
0 answers
7 views

Checking on Platform to see if it is Real [closed]

i have downloaded my Trust Wallet and i access my trading platform thru "eutrandvs.com" and it takes me to my ETHER UNIVERSE platform. how do i find out if this site is real?
RALPHER's user avatar
0 votes
0 answers
10 views

Is it possible to develop a multifunctions token?

i try to know where the capabilities of smart contract are, is it possible to write a smart contract for a token that will be : Ownable Transferable Burnable POS Compatible POW emulated compatible ...
Bakhouche Akram's user avatar
1 vote
1 answer
33 views

How to avoid using a private key with Safe.init() in Safe Global Protocol Kit?

Alternatively, I'm trying to use window.ethereum const provider = new ethers.providers.Web3Provider(window.ethereum); await window.ethereum.request({method: 'eth_requestAccounts'}); const signer = ...
Volodymyr Derunov's user avatar
0 votes
1 answer
20 views

Batch call through SafeSDK problems with "createTransaction"

I am trying to batch multiple transactions using createTransaction to save the user on clicking. The problem is I'm getting errors on I believe because I'm doing something wrong when setting up the ...
gedas's user avatar
  • 3
0 votes
0 answers
13 views

Hardhat returning incorrect call results in chai tests

I'm currently facing a problem with hardhat tests, where the result of a call to a contract in the test returns incorrect results. The following contract is an example of where this might occur: // ...
Riley's user avatar
  • 1
0 votes
0 answers
4 views

ZNS Connect integration

Gm, I have a question. We have a few mints on different chains: Scroll and Taiko. We need to insert the treasure into Safe. Here are the links: Scroll Token: https://scrollscan.com/token/...
Anry Bond's user avatar
0 votes
1 answer
16 views

future transaction tries to replace pending

I have an address A which I have funded with ETH. Now I want to crate a transaction to send the funds to a different address B. Creating and signing seems to work as I can decode the transaction and ...
Michael's user avatar
  • 111
2 votes
1 answer
10 views

Do optimistic rollups burn ETH?

I was reading Optimism's docs on Transaction Fees on OP Mainnet, and this part caught my attention: Like Ethereum, OP Mainnet uses the EIP-1559 mechanism to set the base fee for transactions. That ...
Paul Razvan Berg's user avatar
0 votes
1 answer
26 views

Blockchain Layer 2 Attacks

I'm interested in learning more about blockchain security. I've studied the vulnerabilities in Layer 1 and improved my skills. After focusing on smart contract vulnerabilities in Layer 1, I want to ...
yukara's user avatar
  • 5
0 votes
0 answers
7 views

Coinbase and sending it to another wallet

The address is sent from my coinbase acct, I was tired of the shenanigans of coinbase pro, so I sent assets to a wallet I thought was more manageable. 0x587416Ba3789ee89F8B5f85FEeb836afF4D06717 And ...
user139095's user avatar
0 votes
1 answer
30 views

nested safes with @safe-global/protocol-kit?

How to use the sdk for signing and transacting with nested safes? Below is the way I work with single layer. But let's say that safeAddress is the 1/1 to another safe: nestedSafeAddress. const ...
Timo's user avatar
  • 5
0 votes
0 answers
13 views

Getting undeclared identifier error because _exists(tokenId) function doesn't exist (was removed from?) in ERC721

I am trying to create a smart contract for minting soulbound tokens. I found that there's a ERC5192 standard for soulbound tokens (although, for some reason, there's no implementation from ...
Hara-desu's user avatar
1 vote
1 answer
24 views

Uniswap V3 - calculate optimal amounts to provide liquidity

I have a Uniswap V3 pool of "token A" and "token B". Holding 1,000 of token A, and 1,000 of token B on a wallet. Current tick in the pool is 50,000, marking the price of ~148 ...
Johny's user avatar
  • 11
0 votes
1 answer
21 views

In titanoboa, how do you set a private key / account?

I want to run this: my_account: Account = Account.from_key(ANVIL_DEFAULT_KEY) boa.add_account(my_account) boa.set_network_env("URL_HERE") So I can run the following: counter: VyperDeployer =...
Patrick Collins's user avatar
0 votes
0 answers
11 views

Despite having checked the addresses containing verified contracts, no contract code at given address

I have token swapping code. Despite having checked the addresses containing verified contracts I get an no contract code at given address error. The debug data is: router0 ...
pigfox's user avatar
  • 73
0 votes
1 answer
14 views

What wallets support ethereum etf? Coinbase delisted etf eth and now I'm looking for a new wallet

What walletes support ethereum etf? Counbase wallet delisted etf eth
Hank's user avatar
  • 1
0 votes
0 answers
9 views

prysmctl testnet generate-genesis could not generate genesis state

I am following steps in the documentation and according to the documentation, to move the values of shanghaiTime and timestamp in the genesis.json file I must run the command: ./prysmctl testnet ...
0x75aaa's user avatar
  • 41
0 votes
0 answers
12 views

solc: import defaults to cwd?

Would appreciate an explanation why the first solc call doesn't fail. # downloaded from https://github.com/OpenZeppelin/openzeppelin-contracts $ ls *.sol IERC20.sol IERC20Metadata.sol # metadata ...
pointyhat's user avatar
  • 101
0 votes
1 answer
23 views

Is there anything wrong with my proxy-implemetation contracts

I just used openzeppelin TransparentUpgradeableProxy, the contractas are like below, is there anything wrong? //storage contract import "@openzeppelin/contracts/access/Ownable.sol"; ...
Jerrylk's user avatar
  • 15
1 vote
1 answer
390 views

Contract got hacked, what's wrong with it?

My Contract got hacked, and I cannot figure out why. Happened on Base. Hacker deployed a contract, then called their contract, which called my contract, and extracted tokens from my contract. But ...
0xQuasar's user avatar
0 votes
1 answer
21 views

Why is it cheaper to execute a transaction on L2 compared to L1?

I don't understand this fundamental concept. If L2 is a blockchain just like L1 then why is executing a transaction cheaper in L2? If L2 knows a way to run a single transaction (I'm not talking about ...
Jeff Saremi's user avatar
1 vote
1 answer
29 views

How OPCODES fees were defined?

When a function from a contract is executed the total cost, in weis, is calculated based on the OPCODES executed. For example, this question shows how to calculate the gas cost for keccak, that is 30 ...
Rafael's user avatar
  • 397
0 votes
1 answer
6 views

Require Not Working in Test

I am super new to coding so I apologize if this question seems obvious. I have a 30 minute time delay in my contract coded like this uint creationTime = block.timestamp; require((block.timestamp >=...
Macie's user avatar
  • 1
0 votes
1 answer
10 views

slither: command not found

I was attempting to use Slither and I followed this guide: https://hackenproof.com/blog/for-hackers/how-to-use-slither-for-auditing-smart-contracts My Docker installation is confirmed to work but when ...
pigfox's user avatar
  • 73
0 votes
0 answers
11 views

HttpOnly cookies not being attached to request

My app uses JWT set as httpOnly cookie. It's working great while using app with various wallet types, but it's not working while using Safe. The problem is that even though cookie was set in client, ...
User's user avatar
  • 1
0 votes
1 answer
9 views

Invalid value undefined for HardhatConfig.networks.sepolia.url - Expected a value of type string

the code is * @type import('hardhat/config').HardhatUserConfig **/ require ("dotenv").config(); require ("@nomiclabs/hardhat-ethers"); const { API_URL, PRIVATE_KEY } = process....
ritesh kumar's user avatar
0 votes
1 answer
12 views

NFT Contract Address shows NULL value

I am new to blockchain development. I am facing one issue in deploy.js, while running npx hardhat run src/backend/scripts/deploy.js --network localhost ideally, it should show something like Deploying ...
Manav's user avatar
  • 1
1 vote
0 answers
10 views

Using FlashSwap with Uniswap swapping functions like 'swapExactETHForTokens'

I tried taking a loan from Uniswapv2 Flash swap. After taking the loan successfully, I tried making a swap on the uniswap v2 using the swapExactTokensForTokens function then I got this error "...
Gregory's user avatar
  • 11
0 votes
1 answer
15 views

Problem in contract deployment in testnet using hardhat

I am trying to deploy my smart contract in the bnb testnet in the deploy script, this is my deploy script: const { Web3 } = require('web3'); const artifacts = require('../artifacts/contracts/...
Ali's user avatar
  • 65
1 vote
2 answers
20 views

How to Correct Arithmetic Underflow Overflow Error

I'm trying to code a 30minute delay in a smart contract and currently it looks like this uint256 futureTimestamp = block.timestamp + 1800; uint256 timeDiff = block.timestamp - futureTimestamp;...
Macie's user avatar
  • 11
0 votes
1 answer
16 views

《Do you have any good suggestions for beginners entering blockchain technology?》

"Everyone, I've been self-studying blockchain knowledge recently. Although I have some experience with BIT, ETH, TRX wallet knowledge, as well as ETF, perpetual contract, and instant contract ...
xuzhen lian's user avatar
0 votes
0 answers
11 views

Need help regarding College Project [closed]

hey guys i am willing to make a food ordering website based on ethereum for my college project. Is it good enough or should i switch to more complex ones?
Suchak Niraula's user avatar
0 votes
0 answers
24 views

ERC721InsufficientApproval after using setApprovalForAll

In my Hardhat project, I'm trying to send an NFT between a bunch of different addresses (for fun). I've been doing it this way: const myAddress = "0x06b0ED5338e36623b859081B0692F7dE33aF67E5&...
Aaron's user avatar
  • 23
0 votes
0 answers
9 views

How to Calculate or Estimate Swap Output on Uniswap V3 Pools Using Solidity

I'm working on a project involving Uniswap V3 and need assistance with calculating or estimating the output of a swap operation within a V3 pool using Solidity
adam mr's user avatar
  • 131
0 votes
1 answer
22 views

Error: VM Exception while processing transaction: reverted with reason string 'Insufficient balance'

contract functions function depositEarnest(uint nftId,bool rent) public payable { require(isListed[nftId],"Property is already sold"); require(tenant[nftId]==address(0),&...
soumyadeep.eth's user avatar
0 votes
1 answer
42 views

Error: Timeout of 900000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves

I'm encountering a timeout error while running a unit test for my Lottery smart contract using Hardhat. The error occurs during the test case that involves picking a winner, resetting the lottery, and ...
ALISHA REDDY's user avatar
0 votes
0 answers
8 views

Private Ethereum Network using PoA for Production

I want to setup a "production" private Ethereum network using PoA as the consensus algorithm. However the latest documentation stated that Geth only supports the Ethereum PoS consensus ...
0x75aaa's user avatar
  • 41
0 votes
1 answer
17 views

UniswapV2Router.sol addLiquidity() / UniswapV2Pair.sol mint() - Learning to read code

Can anyone explain to me what I fail to understand/misunderstand when reading the mint function of the UniswapV2Pair.sol contract after the addLiqudity function of the UniswapV2Router.sol initiates a ...
Leonardodawinci's user avatar

15 30 50 per page
1
2 3 4 5
1083