All Questions

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

Deploying a simple contract to ETH Mainnet (from remix) costing $500? Am I doing this wrong?

I have a simple contract that I've tested on my ganache network, and now I'd like to push it to the mainnet. So I funded my Metamask with around $100 or 0.025 eth, figured that would be enough to ...
0
votes
0answers
7 views

Inconsistent availability of older transaction receipts on Polygon

I am trying to access transaction receipts on the Polygon blockchain with Python web3.py. I discovered that the function web3.eth.get_transaction_receipt(tx) sometimes throws an TransactionNotFound ...
0
votes
0answers
3 views

How can I create token using Pancakeswap factory!

I want to create a smart contract by adding buy-sell tax features and other stuff. I read the code of safemoon or other tokens but I cannot understand the concept properly. can any suggest to me any ...
0
votes
0answers
3 views

Why removing royalty info on burn in Openzeppeling ERC721 Royalties extension?

In https://github.com/OpenZeppelin/openzeppelin-contracts/blob/783ac759a902a7b4a218c2d026a77e6a26b6c42d/contracts/token/ERC721/extensions/ERC721Royalty.sol#L34 we have function _burn(uint256 tokenId) ...
0
votes
0answers
4 views

How to know what coin has been exchanged through Web3 Api

Is there a way to know what coin and how much of it has been exchanged when getting a transaction history through the Web3 API?
0
votes
1answer
7 views

Can a smart contract approve a pending transaction on a multisig wallet?

Suppose I have a multisig wallet like a Gnosis Safe, which requires (say) two or three signers to approve any given transaction. In other words, the multisig wallet has its own wallet address, and 2 ...
0
votes
0answers
4 views

How to enforce relative constraints on brownie hypothesis strategy?

Say I have the the following 2 strategies for 2 variables smaller and bigger. How can I enforce a constraint on either strategy such that the randomly selected smaller is always less than than bigger ...
0
votes
0answers
12 views

Balance of token not appearing in my wallet (Ethereun ERC20)

i transfered AAA Tokens to my own wallet deposit which is under Network Ethereun ERC20. Etherscan seems ok towards my success transaction Txid: ...
0
votes
0answers
8 views

How get/show upcoming transfer?

Let me explain: I want to display the progress of a deposit. I saw the example on the hotbit exchange, but I don't know how to do it.
0
votes
0answers
5 views

UniswapV2: TRANSFER_FAILED when triggering auto-sale

I encoutered a strange behavior when using UniswapV2 pools. I have a plain ERC20 token that is triggering another contract when a sale happens via a predefined Uniswap pool. I define a sale by ...
0
votes
0answers
8 views

Token id 0 minted by smart contract

i was wondering if someone can help me here. I'm minting an nft by this smart contract, and the problem is that the tokenid count starts with id 0, and that is an error. It must start in id 1. Someone ...
0
votes
1answer
20 views

Help with smart contract

Hello i have these smart contracts: contract CarFactory { Car[] deployedCars; function createCar() public { Car newCar=new Car(this); deployedCars.push(newCar); } ...
0
votes
2answers
18 views

Solidity 8 best practice - using require or revert?

Trying to understand what are the use cases for a "require" statement and when would it be better to revert using an error: For example require(msg.sender == owner); Or if (msg.sender != ...
0
votes
0answers
6 views

Its saying abi and evm is undefined when compiled

I have the following: solc = require("solc"); fs =require("fs"); Web3 = require("web3"); let web3 = new Web3(new Web3.providers.HttpProvider("HTTP://127.0.0.1:yyyy&...
0
votes
0answers
3 views

Ganache UI infinite spinner / workspace not accesable

I have been using Ganache UI for over a year now on CentOS7. But last week it hadn't been working correctly. Whenever I create a new Workspace and add a project, the UI gets stuck For example: I open ...
0
votes
0answers
4 views

verifyMessage throw `TypeError: Cannot read property 'r' of undefined`

I'm implementing web3 authentication using sign message and verify message. On my client side i have following code: const timestamp = Math.floor(Date.now() / 1000) const message = `Current time ${...
0
votes
1answer
6 views

How test uint from smartcontract with chai?

In my solidity smartcontract, I have a function to return a uint value : function getUserBalance(address userAddress, address tokenAddress) public view returns (uint256) { ...
0
votes
1answer
10 views

Can't call methods with ether

I have a simple contract: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Reentrancy { mapping(address => uint256) public balances; function depositFunds() external ...
0
votes
0answers
16 views

Private key from 13/25 seed phrase

It's quite clear for me how to generate a 12-24 seed phrase: straightforward with ethers.js import { entropyToMnemonic } from "@ethersproject/hdnode" // 16 bytes / 128 bits => 12 ...
0
votes
0answers
11 views

Recovering information from Bytes using Assembly

I have im my js file 3 variables: var stringData = "stingData"; var intNonce = "1234"; var hexData = "0x65225648"; I want to concatenate then and send to my contract: ...
0
votes
1answer
12 views

Why does mining difficulty, gas prices raise, yet some transactions still fail?

I would be grateful if someone was able to clarify this, given my assumptions: Mining difficulty is depending on the amount of computational power invested into verifying transactions on the ...
0
votes
0answers
11 views

send_raw_transaction threading with python?

I'm kinda freaking out here. I'm trying to use send_raw_transaction function (web3 python library) using threading to be able to send multiple transactions at the same time (of course with multiple ...
1
vote
0answers
5 views

Not able to call any method from contract in react js app (Solidity, Ganache, Truffle & React)

Not able to call any method from contract in react-js app, but if I print contracts in console, I can see all the methods that I've define in contract, below is the code inside react App.js -- import ...
1
vote
1answer
22 views

Why is my NFT showing as a placeholder image instead of the actual NFT image?

As described in the title. I moved my NFT to the Gnosis Safe. It's showing up, but only with a placeholder image and not the actual NFT image. Why is this happening? Note: The NFT image is showing ...
0
votes
0answers
11 views

Does anyone know how to use TimeLockController.sol from openzeppelin

I want to use the openzeppelin timelock controller contract in a way that it calls the functions of other deployed contracts at some time. The thing can be done with the openzeppelin timelock ...
0
votes
2answers
15 views

Is it possible for a server to execute a contract call but for a user to pay the gas fees?

I have a smart contract which contains a function called "withdraw" - which basically increases a users balance by X amount of an ERC20 token. The user can decide how much to withdraw by ...
0
votes
0answers
7 views

How can I advance time when testing on Rinkeby network?

I've successfully deployed my contract to Rinkeby. Testing on Remix everything worked fine. I'm now writing some tests in Javascript but I don't know how to advance time to test functions in a ...
0
votes
0answers
3 views

What are the Httpmodules

can anyone explain to me what are the Httpmodules ? because i am working on the BSC and i found the parlia module and trying to understand how it is working and how to use it to work with the PoS. if ...
1
vote
2answers
13 views

How to initialize an array inside the function and push items into it?

How to initialize an array inside the function and push items into it? I'm not gonna initialize outside the function. Here's my code: function tokenOfOwner(address owner) public virtual returns (...
0
votes
1answer
5 views

Difference between address.code and type(Contract).runtimeCode in solidity

Can anyone please clear my doubt about the difference between address.code and type(Contract).runtimeCode in solidity. Shouldn't they be same.
0
votes
1answer
14 views

State variable not updated after DelegateCall

I deployed two contracts 'WalletLibrary' and 'Wallet': most of the functions in Wallet delegateCall() the functions from WalletLibrary. I want to recreate an Attack, where I call the initWallet() ...
1
vote
1answer
15 views

Public Keys vs Addresses on ETH2 Beacon Chain

Why do we reference ETH2 validators by their public key while in ETH1 we use addresses for that? After the merge, can we expect that we also use addresses for validators? Why are public keys in ETH1 ...
0
votes
1answer
11 views

I am having trouble transferring my Tether USD from coin-base wallet to everywhere

I'm trying to send Tether USD to another wallet or exchange. I try to send to a Binance address (I have the same error with Coinbase address) but I receive this error: 0.00038 BNB (0,17 USD) may be ...
0
votes
1answer
8 views

ValueError: {'code': -32000, 'message': 'filter not found'}

I am tring to get all holders of a particular contract through web3.py library.For RPC I am using infura. the code is: contract = web3.eth.contract(address=address,abi=abi) name = contract.functions....
1
vote
0answers
8 views

Consolidating balances from multiple addresses in a private manner

I have a large amount of Ethereum addresses that all have random amounts of Ether in them. I'd like to consolidate these into one address now, for ease of use. I was intending to use Tornado Cash to ...
0
votes
1answer
7 views

where to get typings for ethereum object on window

I was wondering where to get typings for the ethereum object on window that would be added through the metamask or some other wallet extension. thank you.
1
vote
1answer
8 views

What is RLPn encoding?

I came across a code snippet where RLPn encoding is mentioned. What is this RLPn encoding and how is it different than RLP?
0
votes
0answers
15 views

How to use gnosis safe in situations where private key of the safe is needed?

I know smart contracts do not have private keys and so in the case of gnosis multi-sig wallets. But I have a use case where I am using a 3rd party SDK that requires a private key to get initialized ...
0
votes
0answers
6 views

How can I call contract which created from another contract (In TESTING)?

Hello guys now Im testing my contract, but I dont know how to call contract which created from another contract, If someone did it please help) Create I mean like following code. function ...
0
votes
0answers
5 views

Signing a 0x limit order as a taker without UI

I have been using the @0x/contract-wrappers to sign a limit order as the taker but I can't find a way to configure a provider that can accept a private key to sign the order rather than using Metamask ...
0
votes
0answers
5 views

TypeError: ethers.getContractFactory is not a function

Im trying to run the partybid contract https://github.com/PartyDAO/partybid from windows powershell but am running into this issue where getContractFactory is not a function Under helpers.js: const fs ...
0
votes
1answer
11 views

Call function in event callback

I have a contract that sends an event when the transaction is done. In my React/Web3 application, I'm listening to this event and when it's triggered I would like to run another function. My code ...
0
votes
0answers
3 views

Passing Contract's variable as param constructure of another contract when migrate truffle

This are my contracts: Token.sol contract Token is ERC20 { address public admin; constructor () ERC20("SimpleToken", "SIM") { admin = msg.sender; _mint(msg....
0
votes
0answers
6 views

Pricing of LP token

I was reading this article about the fair pricing of liquidity pool tokens and I came across this formula: How to derive it?
1
vote
0answers
12 views

Ive got an Eth wallet for which I have damaged my private key I have 59-60 out of 64 characters in order and the public ID - need to brute force guess

Ive got an Eth wallet for which I have damaged my private key I have 59-60 out of 64 characters in order and the public ID - need to brute force guess the password how do I do this quickly and ...
0
votes
0answers
5 views

couldn't send transaction to smart contract with local private key

type is not supported from eth_keys.datatypes import PrivateKey from web3 import Web3, eth from web3.middleware import geth_poa_middleware from web3.middleware import ...
0
votes
1answer
24 views

TypeError: Member "toString" not found or not visible after argument-dependent lookup in uint256

im having a big trouble trying to resolve this problem. Maybe anyone here can help me find it. This is the .sol contract and im having this error: TypeError: Member "toString" not found or ...
0
votes
0answers
5 views

Locking Liquidity and renounce: still able to withdraw after lock period?

Someone can help me to understand how Locking Liquidity works? I want to know how Unicrypt or Trustswap lock our tokens: If I create a token, add the liquidity, lock it with unicrypt, renounce the ...
0
votes
0answers
4 views

best way to delete or clear nested mapping?

How would I clear/reset this mapping of mapping? mapping (address => mapping (address => bool)) nomineeApprovals
0
votes
0answers
9 views

Downloading all transactions from an NFT project

I'm looking to get access to a table where each row represents a single NFT transaction for a specific project. Let's use the Bored Apes Yacht Club NFT project as an example. Let's say there are 10,...

15 30 50 per page
1
2 3 4 5
825