All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
54 views

Run optimizer on opcodes

According to documentation, one of the steps of solidity compilation is the optimization on opcodes level, with the following set of rules. How can I apply optimization directly on opcodes? Details ...
Stas Buzuluk's user avatar
0 votes
0 answers
10 views

Nethermind x Prysm Snap Sync Takes Long Time

I am trying to run an Ethereum node using Nethermind execution client and Prysm consensus client in Windows. After some time the execution client reaches 100% but when I try to get the current block ...
Bashana's user avatar
0 votes
3 answers
56 views

Chainlink VRF Contract Logic Error

I am beginning my journey in web3 so please be understanding 🙂 I am struggling to find an issue in my contract that uses VRF. It is a simple coinflip written in Vyper. I have deployed a consumer and ...
szaleju's user avatar
0 votes
1 answer
18 views

How can I control how much gas is left in the middle of a function?

I am working on an ethernaul challenge (below). The challenge is to successfully call enter(). I have it all solved except for the part where gasleft() % 8191 has to be 0. I tried using a while (while ...
user127148's user avatar
0 votes
0 answers
14 views

Why are some of the top Holders of a token a contract? What is this use case?

I'm trying to understand why a specific token: https://etherscan.io/token/0x826180541412d574cf1336d22c0c0a287822678a#balances Has many contracts that are holders of the token vs individual wallet ...
Patoshi パトシ's user avatar
0 votes
0 answers
13 views

Why can I sometimes not send ETH through Metamask? Contract is payable and address is correct

Why does metamask sometimes not allow me to send eth to contracts...this contract and the function I'm calling was marked payable. See below
user127148's user avatar
3 votes
1 answer
54 views

How do old smart contracts that contain certain opcodes behave when those opcodes get deprecated/removed in hard fork upgrades?

For example say a contract with a compiler version of 0.7.5 (pragma solidity 0.7.5) contained selfdestruct(payable(address)) what happens to the contract when the self destruct opcode gets deprecated ...
davidastro's user avatar
0 votes
1 answer
12 views

How to change response from oracle?

I need to test my contract, and to test I need to change data that I recieve from ChainLink Oracle (I get Ethereum price from it). So how can I change price on ETH local for tests using Ganache-Cli or ...
0 x's user avatar
  • 1
0 votes
2 answers
30 views

How to pass blockNumber to viem call?

I'm trying to view the owner of a certain NFT at a specific blockNumber, when I make the viem call without the blockNumber parameter it works perfectly, however, once I try to pass a blockNumber with ...
Rohan Nero's user avatar
  • 1,408
1 vote
1 answer
23 views

How does ERC-4337 play with the Bundler and msg.sender?

We typically know thay msg.sender stands for the address who invoked the current method of a contract. Let's say that I have address A (which is a Smart Contract abstract account) and I want to send ...
Luis Masuelli's user avatar
0 votes
2 answers
147 views

Create same address under ETH as like available in Polygon @gnosis- safe

I initiated a bridge from Polygon network to ETH network for USDT and both have different wallet address under safewallet, so instead of funds getting transfer to ETH address, it went to Same Polygon ...
Akash Sharma's user avatar
0 votes
1 answer
30 views

Not able to use Private blockchain network in Safe-Infrastructure

i have my own private blockchain deployed via quorum and configured safe-infrastructure also on my local. the issue is whenever i am using Linea Georli testnet network i am able to create safe wallets ...
Nikhil Verma's user avatar
0 votes
1 answer
30 views

I want to call a contract method using my safe wallet address

I made a safe wallet in my panel safe wallet which is 2/3 signers. I want to use it in my access control for an admin role and use it for calling a transfer method with it only. The problem is when I ...
Helia Marami's user avatar
0 votes
0 answers
20 views

Deploy Fail to using existing address with foundry

I encountered this error when i deploy the scripts to the Sepolia. Error: script failed: revert: No contract deployed The deploy script is below: //SPDX-License-Identifier: MIT pragma solidity ^0.8....
Fred's user avatar
  • 1
0 votes
0 answers
14 views

Mainnet-fork has different result than mainnet

I'm currently forking Binance Smart Chain using Brownie and Python. The idea is to use the forked network to test if new BEP20 tokens can be traded (buy and sell) using pancakeswap, and check if the ...
BJ2M's user avatar
  • 11
1 vote
0 answers
17 views

Why smart contract call() is cheaper than sendTransaction when send ether to a wallet holding ether

// Solidity function sender(address payable _to, uint _value) private { (bool success,) = _to.call{value: _value}(""); require(success,"Fail Send By Call"); } // ethers ...
imelon2's user avatar
  • 455
1 vote
1 answer
32 views

Simpler way of removing bad peers in go-ethereum?

I daily have to remove 5-15 peers that's constantly delivering stale data. I have to manually remove them with admin.removepeer() by using their enode address. Unfortunately, the go-ethereum logs only ...
blockchainmassacre's user avatar
0 votes
0 answers
22 views

Foundry default sender when deploying

I'm using scaffold-eth2 with foundry as a base framework but when trying to deploy I am getting this error: You seem to be using Foundry's default sender. Be sure to set your own --sender. No ...
Kai Feinberg's user avatar
0 votes
2 answers
21 views

Object has no member 'call' when reading smart contract in geth console

I'm following the Storage contract example from the Geth site (https://geth.ethereum.org/docs/interacting-with-geth/javascript-console-contracts) I am unable to call a 'retrieve' function on the ...
Chris's user avatar
  • 101
0 votes
0 answers
9 views

How do I know on-chain if a target address is a Safe?

I know you can get the byte-code of an address, and then check against the stored byte-code of {GnosisSafeProxy.sol} at specific version compiled with a specific compiler. If the comparison returns ...
dcota's user avatar
  • 1
0 votes
0 answers
25 views

Vote on a Snapshot with a deployed Safe using the Safe SDK?

I'm wondering how the code might look/if it's possible to use the Safe Core SDK to deploy a safe, then vote on a Snapshot proposal? Suppose I have a safe, successfully created with: const safe = await ...
rml's user avatar
  • 1
0 votes
1 answer
26 views

Why has the Safe{WALLET} dapp iframe an outer scrollbar?

Just integrated the Safe{WALLET} with the XPowermine.com dapp and noticed that the <iframe> on the desktop has this extra scrollbar on the right hand side. Further, since the dapp has its own ...
Hasan Karahan's user avatar
0 votes
0 answers
24 views

Call contract method via metamask without web3

https://docs.metamask.io/wallet/reference/json-rpc-api/ window.web3 is no longer injected by metamask, instead it is window.ethereum, but loads of methods are missing. It used to be very simple, just: ...
zeb3142's user avatar
0 votes
0 answers
15 views

Check sync committee participation percentage

Looking f.e. at slot 3645537 I would like to verify the percentage of sync committee participation. I get the sync aggregate of a given slot by hitting my beacon node on the following URL: ${...
Milkncookiez's user avatar
1 vote
1 answer
40 views

error on deploy a Safe on Sepolia with v1.4.1

i use all the info in here https://github.com/safe-global/safe-deployments/tree/main/src/assets/v1.4.1 to deploy a new Safe on sepolia. i use createProxyWithNonce(address _singleton,bytes initializer,...
ziSigmund's user avatar
0 votes
0 answers
19 views

Deploy entrypoint contract on an new op stack chain using safe-singleton-factory

Hello I wanna deploy the entrypoint contract to our op stack chain we have the testnet running tryna follow this Safe developers documentation and I did submit a transaction to our testnet but what ...
Aymen Tirchi's user avatar
0 votes
2 answers
29 views

How to keep track of each account's ETH balance when parsing all historical transactions

I have downloaded the contents of each historical Ethereum block (starting with block 0) by calling eth_getBlockByNumber for every single block. I want to write a script that iterates over each ...
galpo's user avatar
  • 45
0 votes
1 answer
13 views

in cloud window.ehtereumundefined,in local window.ehtereum is object

I am developing a dapp now, deploy the dapp in local PC, it can connect with browser extension, window.ehtereum is Object, but deploy it in aws cloud, it cann't connect with browser extension, window....
spencer's user avatar
0 votes
1 answer
25 views

How to exchange one nft for another from a different contract?

I have 2 ERC1155 contracts, and am looking to transfer nft2 into nft1's wallet upon checking wallet holds nft1, but not sure what I'm doing wrong. This is my nft1 contract: import "./NFT2.sol&...
katslair's user avatar
-1 votes
0 answers
30 views

Need help writing up a smart contract [closed]

As part of a larger project, I need help implementing Shamir's Secret Sharing algorithm in Ethereum and IPFS. I am an UG engineering student and have just got out of a month long stay in the ICU due ...
Ahleya's user avatar
  • 1
0 votes
0 answers
10 views

Are there any Go-ethereum forks supporting segwit?

My goal is to create a new token with a different signature algorithm to secp256k1. I would like to use the Go-Ethereum codebase as a starting point. Segwit is a hard requirement for this idea to work ...
Freddie Woodruff's user avatar
0 votes
1 answer
24 views

Ethers is not decoding the indexed parameters

I want to get the value from the first indexed parameter of the TokensTransferred event from the transaction logs which can look like this. You can see that the TokensTransferred event has the first ...
Rishabh Raghwendra's user avatar
0 votes
0 answers
25 views

Get a list of all erc20-token contract addresses [duplicate]

I would like to get a list of all ERC20 token contract addresses via an API rather than scraping the web. Are there any web services or alternative methods available to do this?
Pierogi's user avatar
  • 203
1 vote
0 answers
9 views

Allowing owner (A) to sign exclusively with owner (C) or (D) but forbidding him to sign with owner (B)

Is it possible to have a 4 owners contract where 2 owners are needed to sign, and where owner of the same "group" wallets A/B and wallets C/D can't sign together?
user128292's user avatar
0 votes
1 answer
12 views

importing other contract in remix gone wrong despite write file name or path [closed]

import "./filename.sol" output Error: not found SimpleStorage.sol
Robi prem's user avatar
0 votes
0 answers
15 views

How to make many transactions in one transaction to pay less gas

Web3.js Good afternoon, can you please tell me how I can make several transactions from different wallets to one wallet? We have conditionally realized system of deposit and main wallet. When the ...
Meliodas's user avatar
0 votes
0 answers
21 views

Malicious ERC20 blocking batch withdrawals of tokens (e.g. ERC777)

I was wondering whether the following attack vector is possible in practice. There's a batch transfer function that is intended to batch transfer the tokens owned by the contract. That function ...
Mila A's user avatar
  • 264
0 votes
1 answer
38 views

Error (9322): No matching declaration found after argument-dependent lookup

Here is the file which i try to run test through foundry. //Imports import "forge-std/Test.sol"; import {Portal} from "../src/Portal.sol"; import {IERC20} from "@openzeppelin/...
Internet and Computer Probe's user avatar
0 votes
0 answers
21 views

Smart/Auto Slippage

Is there a typescript library which can automatically calculate your slippage for you or does someone know how to calculate it? I'm aware that we can manually fill in slippage but what I need is a ...
Arctic's user avatar
  • 1
1 vote
1 answer
54 views

Same block Swap before an Approval is allowed?

I had the understanding that Approval in the same block as a Swap had to have a higher gas price as to be processed before the Swap when the block is being produced; that's until I found blocks on the ...
blockchainmassacre's user avatar
1 vote
0 answers
13 views

Why doesn't this solution for ethernaut work?

I am working on the ethernaut CTF level (code below)...I need to take over ownership of the instance (it's been deployed). I thought I could do it by sending a small amount of ETH to the instance ...
user127148's user avatar
1 vote
0 answers
16 views

Nonce delays while using different nodes

Question related to the nonce, In case I am using a scaling solution with few nodes due to massive traffic with many transactions and submitting a transaction to node X, but the nonce for the next ...
Sergey Foiering's user avatar
0 votes
1 answer
23 views

How to call gnosis-safe's changeThresold function from onchain contract which is owner of that safe

I have one safe wallet and it's owner is one smart contract. I want to call safe transaction to this method changeThreshold by that owner contract ? One way i found is ...
Xyz People's user avatar
1 vote
1 answer
76 views

Byte32 Array is not emitted as array from events

I have created this demo contract. It has a function called convertText which converts a string text into bytes32 and stores it into bytes32[] public storedData. You can see when you call convertText()...
Rishabh Raghwendra's user avatar
0 votes
0 answers
30 views

I have received USDT on BSC network but i can't send it or bridge it to ERC 20 or anywhere else

I have received USDT coins via BEP20 network on Coinbase wallet. Those USDT's are on BSC network but my ballance in Coinbase is 0 even as I have that that USDT in my wallet. Problem is when I try to ...
Sasa's user avatar
  • 1
0 votes
1 answer
36 views

reading and writing to a packed nested struct using inline assembly

I've been racking my brain with this for some time, and have been unable to increment and decrement specific fields inside nested structs as per the example below. // SPDX-License-Identifier: ...
jlbl's user avatar
  • 1
0 votes
0 answers
29 views

Execution Reverted: GS013 Error in Safe Wallet During 0x OTC Transaction

I am encountering a 'execution reverted: GS013' error when trying to execute a script that aims to fill an Over-the-Counter (OTC) transaction through Safe Wallet using the 0x protocol. This issue ...
Tiago Soriano's user avatar
0 votes
0 answers
12 views

Guidance Needed for Executing First Transaction with GnosisSafeProxy

I've recently set up a Safe Wallet using the GnosisSafeProxyFactory and successfully created a 'GnosisSafeProxy'. For this proxy, I've used a Nonce, and the owner address is a contract compliant with ...
GianluK.eth's user avatar
0 votes
0 answers
10 views

API Mechanisms for Crypto Asset Transfer on Tron and BNB Blockchains

I have experience using the Bitcoin RPC API, which provides the capability to create applications that can communicate with the Bitcoin network. This includes the development of self-custody wallets, ...
sci9's user avatar
  • 101
0 votes
0 answers
19 views

Different bytecodes when verifying contract on Etherscan Goerli for code from OpenZeppelin Wizard

I went to https://wizard.openzeppelin.com to generate an ERC20 contract and then pasted the contract on Remix and deployed on Goerli. Then, I flattened the same code and tried to verify it on Goerli ...
ratib90486's user avatar

15 30 50 per page