All Questions
52,120
questions
0
votes
0
answers
4
views
Is it possible to deploy a smart contract using multi-sig? i.e. contract will deploy only when multiple parties approve the tx?
Is it possible to deploy smart contract using multi sig fetaure?
0
votes
0
answers
3
views
Does staking more than 32 ETH increase my chance of becoming a validator?
When people say "The more you stake, the more likely you will be selected as a validator," what do they mean exactly? My understanding is that I am only supposed to deposit 32 ETH (but ...
0
votes
0
answers
6
views
What is the method to be able to use the mobile metamask app as a support for mobile chrome?
So this one is incredibly hard to search for because it returns so many generic posts about how to install MetaMask on a chrome browser and various other things.
My query is about how many dapps are ...
0
votes
1
answer
8
views
web3.py ContractEvents.myEvent.process_receipt decoding
Here's a link to the docs for reference:
I have the following code:
txhash = "{hash}"
tx_receipt = w3.eth.get_transaction_receipt(txhash)
processed_logs = w3.eth.contract(address="{...
0
votes
0
answers
8
views
Hayatta neyin en önemli olduğunu düşünüyorsun
soruyu, değerlerini ve önceliklerini daha iyi anlamak için sorarım. Bu soru, kişinin hayattaki motivasyonlarını ve hedeflerini de ortaya çıkarabilir.
Bu soruyu sorarkensergilerim
0
votes
1
answer
7
views
contract abi not working if json format
Using python 3.11.4, web3 6.9.0
I am using a reduced ERC20 token abi to be able to get decimal & symbol information. Abi is:
ERC20_ABI = [
{
"inputs": [],
"name&...
0
votes
1
answer
5
views
How much would be too much data to save in a public mapping?
So I know that in solidity for larger data we wouldn't use contract to save the data but rather we'd use some kind of external database.
But I'm not sure how large is too large and what would happen ...
1
vote
1
answer
5
views
Are storage variables tightly packed like struct fields?
Tight variable packing is a known coding pattern in Solidity for saving gas by placing struct fields that are lower than 256 bits closer to one another.
Does this logic apply to storage variables? ...
0
votes
0
answers
11
views
MetaMask app/browser SSL Error (local server HTTPS testing)
Creating a dApp using Vite; within the config file I've imported mkcert to produce SSL certs.
I've also installed these on my mobile device. I have no issues at all using the website/dApp in Chrome (...
0
votes
1
answer
11
views
What is the best gas efficient way to reset all values for keys in a mapping?
As far as I understand there is no way in solidity to automatically reset all values of a mapping to default in solidity. now lets say I have a mapping mapping with 7 keys and values set. to refresh ...
0
votes
1
answer
16
views
Extracting the Public Key from a transaction hash
I've seen a variety of questions and answers in this forum about extracting the public key from a signed transaction hash. I am able to get the correct answer from newer transactions, but unable to ...
0
votes
1
answer
20
views
OpenZeppelin: Update UUPS proxy contract
I have such proxy:
import { upgrades } from "hardhat";
proxy = await upgrades.deployProxy(
Contract,
[
address,
flags,
],
{
initializer: "...
0
votes
0
answers
6
views
trying to perform a batch transaction for finally obtaining the smart account address
well i was trying to batch three deploy transactions into one, by creating another smart contract for it.
note: these contracts are deployed for creating smart account wallet (aa) and for calling the ...
0
votes
0
answers
4
views
Full node is missing transactions
I am running a full node (geth + lighthouse) on mainet for a few months. In a random test i found that my the geth client did not heard of some transactions (i took random blocks from Etherscan, and ...
0
votes
1
answer
18
views
Problem with testing mappings and structs in foundry
Hey everyone
I'm using foundry for solidity development and I have some issues with using mappings and structs in my tests.
here are my problems:
Problem 1
the problem :
the function below lets users ...
0
votes
0
answers
9
views
Unable to deploy the smart contract from my terminal using hardhat
I've created one contract and trying to deploy it locally to test it. But it's not deploying. It throws this error,
This is the code in scripts/deploy.js file,
async function main() {
const ...
0
votes
0
answers
9
views
SAFE Module execution in a Smart Contract
In NodeJS, executing with an EoA, the following transaction is to withdraw ERC20 from a SAFE to receiverWallet which is already a delegate with proper approval.
const tx = {
from: this.wallet....
0
votes
0
answers
5
views
NFT based webapp - Best architecture approach to render data to the front more agile
I am building a book marketplace where each different book launch a limited series of N copies.
Therefore for each book I create an ERC-721 contract with a totalSupply = N.
In each ERC-721 contract I ...
0
votes
1
answer
17
views
Can safe wallet interact with smart contracts?
I have set up a safe multi-sig wallet for my protocol treasury and governance. We the multi-sig wallet to be the owner and deployer of the protocol factory smart contracts. Is that possible and how ...
0
votes
1
answer
8
views
I need to add $10 USDC to 60 wallets using Transaction Builder by tonight
I understand that I need to paste the USDC Ethereum contract address and not my own safe address that contains the USDC. Once I pasted the address, this popped up. What is the difference between a ...
0
votes
0
answers
7
views
Market Cap: $Infinity
What can cause this to happen on poocoin?, Market Cap: $Infinity
I have been trying to deploy an erc20 token and the deployment was successful but on poocoin, after adding liquiduty, it shows Market ...
0
votes
1
answer
12
views
Using decimals in intermediate calculations?
I'm looking at a contract that takes a uint88 and divides by the product of a uint80 and a uint104. The uint80 is the inverse of ETH/USDC (ie, it is the price of one USDC in terms of ETH)...obviously ...
0
votes
0
answers
11
views
How does Gelato's Relay service work? How is it possible for another wallet to send my signed transaction (matching sender address) and pay gas?
How does Gelato's Relay service (used by gnosis safe relayer) work? How is it possible for another wallet to send my signed transaction (matching sender address) and pay gas? Does it require Gnosis to ...
0
votes
1
answer
21
views
What is the correlation between "Hash" (Method ID) & "Name"
I was checking Etherscan and come across a deployed contract (Create contract), but the method id was 0x60a06040.
I then used https://openchain.xyz/signatures?query=0x60a06040 and found out that the ...
0
votes
2
answers
18
views
How to call public view functions from Contract in a local hardhat node forking a public network?
I have a Hardhat project with a sample storage contract.
There are 2 functions:
Public view function
Public write function (creates a transaction)
My Hardhat project forks an Ethereum mainnet public ...
0
votes
1
answer
9
views
I want to subscribe to flashloan events on the Aave v2 contract via websocket, how do I find the function/event?
I am trying to set up a websocket connection with ethers.js to listen for flashloan events.
I have made a connection successfully listening to Transfer events on the USDT contract - which was simple ...
1
vote
1
answer
19
views
Why don't ETH transfers cost more when the recipient's balance is zero?
The SSTORE opcode has differential pricing depending on what the original, current, and new storage values are (see EIP-2200 for the full details). In short, the idea is that setting a zero value to a ...
0
votes
0
answers
10
views
Wagmi write contract
I have this code here
import React from 'react';
import { usePrepareContractWrite, useContractWrite } from 'wagmi';
import lottoABI from './lottoABI.json';
import { parseEther } from 'viem';
// Your ...
0
votes
1
answer
13
views
Why were EVM opcodes not made to be compatible with assembly?
It seems like both machine language and the ethereum machine read through instructions like ADD or MOV or etc..
Why did Vitalik, when he made ethereum not just follow that standard, it seems quite ...
0
votes
1
answer
17
views
Mismatch in `accessList` between Geth and Nethermind
Access Lists were introduced in https://eips.ethereum.org/EIPS/eip-2930, and one of the design decisions was to support duplicates "because it maximizes simplicity, avoiding questions of what to ...
2
votes
1
answer
21
views
What do original, current, and new value mean in the context of pricing storage updates?
I've heard these terms thrown around in discussions surrounding storage pricing in the EVM. But what do they mean, more precisely?
0
votes
0
answers
20
views
Solidity query works in dev environment but not in production build (nextJS)
I am calling a function that queries the token balance of a user. The query works on a dev environment but not in production build. I am using metamask and ethers to interact with my contract on the ...
0
votes
0
answers
17
views
Has the way to access public member variables in solidity through deployed contracts changed?
I have a public contract member defined like this, which is later assigned a value in the constructor
AggregatorV3Interface public priceFeed;
I want to access this variable's value and I am trying ...
0
votes
2
answers
35
views
ERC20 token smart contract check
I wrote a ERC20 token smart contract that I did not find any problems in my tests and reviews, honestly, I would like you to help me check this code and tell me its possible problems in terms of ...
0
votes
0
answers
7
views
Is it possible to trigger send transaction from NodeJs server for safe wallet without owner private key and owner get the notification for signing
I want to create a NodeJs server and use the safe sdk wallet to create the safe Instance and initiate the transaction from it, and then send the notification to all owners so that they can sign the ...
0
votes
0
answers
3
views
Issue with integrating wallet connect v2, which version is supported as of now?
I am using the following walletconnect dependencies:
"@walletconnect/ethereum-provider": "^2.9.2",
"@walletconnect/modal": "^2.6.1",
After copying the ...
0
votes
0
answers
36
views
Facing issues while running Chainlink node on XRPL EVM Sidechain network
Basically, I’m trying to run a Chainlink node on XRPL EVM Sidechain network.
Here's the content of the config.toml file that I'm using:
[Log]
Level = 'warn'
[WebServer]
AllowOrigins = '\*'
...
0
votes
2
answers
13
views
What does FE stand for in "InvalidFEOpcode"?
I've seen the name InvalidFEOpcode used in client implementations, e.g. in REVM:
https://github.com/bluealloy/revm/blob/8206193e65ad199a1dde1e79e38bf9ffe38118c9/crates/interpreter/src/...
0
votes
0
answers
17
views
Missing transaction details in MetaMask (only showing gas fees) dApp testing
I'm building a presale dApp as an experiment, and when I hit the buyButton, MetaMask successfully opens for me to approve spending my USDT (labelled a contract interaction). However the transaction is ...
0
votes
3
answers
23
views
Seeking testnet and wallet for students to learn how to use ethereum?
I have a class on finance and have been trying to make it relatively painless for students to learn about getting a wallet, Ethereum address, learn about transaction hash and block, etc. Unfortunately ...
0
votes
0
answers
20
views
Is there any way to change hardhat running environment (hre) provider when running script?
I'm running multiple hardhat nodes in different ports like: 0.0.0.0:8545, ...:8546, ...
My scripts is something like this and I use it in a nestjs project
import * as hre from 'hardhat';
async ...
0
votes
0
answers
24
views
contract.getaddress returns undefined
I am deploying a contract that I then want to use its address as a constructor in another contract to be deployed.
Here is my code but getaddress returns undefined
'''
const contractname = await hre....
0
votes
2
answers
13
views
How do you calculate the number of tokens that are worth 1 eth before swapping in Uniswap pool?
I want to make a function for my token contract that allows me to swap a dynamic amount of tokens in exchange for 1 eth.
Is it possible to calculate how many tokens are worth 1 eth and then swap with ...
1
vote
1
answer
13
views
How to Implement a Proxy Contract to Fix an Existing Investment Smart Contract with Active Investments on BSC?
I'm currently facing a challenging issue with an investment smart contract deployed on the Binance Smart Chain (BSC). The contract already has active investments, but it contains a critical bug that ...
0
votes
0
answers
6
views
Is using OZ's ReentrancyGuard contract infallible?
Are there any know ways to exploit reentry even if a contract is using Reentrancyguard from OpenZeppelin? This is for an audit contest...it's not me trying to exploit anything.
0
votes
0
answers
6
views
Gnosis Safe wallet transaction creation
Is there a way to achieve this scenario on JS application:
We want to implement a multisig wallet onto our application that is used to approve crypto transactions from an admin panel. So our goal is, ...
0
votes
1
answer
8
views
Is it possible to transfer USDC from Fantom Opera network to BEP-20 network?
I have tried couple of bridging websites like Anyswap, Spookyswap but it failed badly. My coins are stuck in Fantom network. I want to switch them to other network, any suggestion?
0
votes
2
answers
21
views
Can we override the private variable in base contract?
Background:
I'm using an opezeppellin Erc20 contract. but i want to use it for minimal proxy pattern(eip-1167).
so for that reason i cannot use constructor and have to use the initialize method. Now I'...
0
votes
1
answer
33
views
Cannot recover signer
I am facing a problem where recoveredAddress is not restored correctly. We assume that the address of the owner who originally deployed the smart contract is returned. Am I making some big mistake? ...
1
vote
0
answers
15
views
How is the derivation of the Constant Product AMM formula of Uniswap?
I was researching about Uniswap v1 and I found that the code is using the following formula to get the amount out of a swap:
Formula:
Reference to code
Everyone says that this formula is derived of ...