All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

WalleConnect(Metamask Mobile)configuration with React Native app

Hey can anyone help me on below points- Connect React Native(expo or xcode) Mobile App to Metamask Mobile Application with the help of Walletconnect Not presenting the QRCode Modal but list of ...
0 votes
0 answers
3 views

Batch/ multisend transaction throwing error

I'm trying to Approve a contract and have that contract use my erc20 token in one transaction. Using the gnosis-sdk, I'm making the following call in typescript: const approveData = ...
0 votes
0 answers
6 views

Flash Loan Implementation for EOA

Good day Devs. I finished my solidity course not too long ago and currently looking into getting flash loans with a contract. My question is : Is it possible to make the calling contract of the flash ...
0 votes
1 answer
7 views

Do gas prices for NFTs depend on file size?

If I am minting NFT does the file size and type affect gas price, i.e. if that's 5 GB video or just a small 15 digits number? Thanks, Yury
1 vote
0 answers
12 views

meaning of `slot` property in Yul?

I was reading through the implementation of ERC721A Upgradable's ERC721AStorage.sol and found this function function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT;...
  • 111
0 votes
0 answers
2 views

Can Gnosis Safe deploy ERC-20, 721, or 1155 contracts on-chain and manage the collections on OpenSea [gnosis-safe]

Is it possible or recommended to: i. Deploy ERC-721 or ERC-1155 contracts from a gnosis safe? ii. Designate the gnosis safe address as the owner of a deployed ERC-721 or ERC-1155 contract? We're ...
1 vote
1 answer
15 views

Whta's difference between web3.utils.toHex() and web3.utils.keccak256()?

I've been practicing Ethernaut CTF and I'm stuck on the Delegation problem. First, I tried to approach this in the console. But I couldn't get ownership. var pwn = web3.utils.toHex("pwn()") ...
0 votes
0 answers
10 views

Need your help guys! [duplicate]

I'm Starting out Solidity, do you have any advice, or learning materials you can share with me.
0 votes
1 answer
12 views

Spread operator solidity

is there an equivalent to javascript's spread operator in solidity? I am hoping to do something like this struct Book { string name; string writer; string genre; string ...
  • 11
0 votes
1 answer
5 views

Geth does not sync - Proof of Stake

I am trying to run full node on Ethereum mainnet; however, I believe geth doesn't sync. I started the GETH client with geth --ws --http --http.api eth,net,engine,admin,txpool --authrpc.jwtsecret jwt....
  • 1,156
0 votes
0 answers
9 views

Remix Static Analysis: Why gas cost message?

I am doing the static analysis of the following smart contract (SC) on Remix: pragma solidity 0.5.1; contract TxUserWallet { address owner; constructor() public { owner = msg.sender; ...
  • 1,294
0 votes
1 answer
13 views

Sending funds from one contract to another contract

I was just wondering with the below code between the highlighted part ** - why could the line not be re-written as ContractOne one = _contractOne; ? mapping(address => uint) public ...
0 votes
0 answers
4 views

How to swap tokens using 0x using smart contracts only.?

I am building an dApp and want to integrate 0x in the smart contract directly instead of me depending on the http request and passing that. Is there a way to implement 0x directly from the smart ...
0 votes
0 answers
13 views

How to calculate a fraction raised to a power in Solidity

I am working on a staking contract where users are penalized for early withdrawal according to an inverse exponential function. Here is an example of such a function: withdrawable amount = staked ...
0 votes
1 answer
12 views

Ran out of gas while using the browser

When I call the function through Remix IDE I have no problem. But when I try to call it through the browser, I get the error: Error: Returned error: VM Exception while processing transaction: out of ...
0 votes
0 answers
11 views

TypeError: getEnteranceFee is not a function

I'm trying to read my raffle's entrance fee but I keep getting this error; TypeError: getEnteranceFee is not a function I know there is a typo in getEnteranceFee but it shouldn't affect anything ...
0 votes
1 answer
10 views

How to send tokens to a wallet without exposing your Private Key (ethers.js)?

Intro: I am trying to create a web app where I can send some tokens from my personal account to another. I found out a possible way to achieve my goal using ethers.js in the following way: // connect ...
0 votes
1 answer
6 views

Best way to listen to contract events and trigger a lambda function

I have a database that is updated when lambda functions through the gateway API are triggered. However from my front end when the user is sending a function there is no way to get the event of that ...
0 votes
0 answers
6 views

Metadata is not showing on opensea testnet

I am trying to develop a nft mint daap. i deploy the erc 721 contract on bsc test net(b481eFed1099C03aEBA03a160cd4feE17Ace3257)/ The mint function is working but the metadata is not showing on opensea ...
  • 73
0 votes
0 answers
4 views

Infinite indexing of transaction on Goerli

after deploying an ERC20 contract to goerli, the transaction shows in metamask as confirmed but after I open it in etherscan, it is infinitely indexing and after some time it disappears and cant be ...
0 votes
0 answers
4 views

Alchemy NFT API pageKey implementation

Alchemy's NFT API has the option of setting the number of NFTs to display for each page and it aids in pagination. I am using Next js with tailwind, when I fetch the NFTs I get returned an object with ...
0 votes
0 answers
4 views

What is use of Writing contracts on Rollup chain

I am deploying smart contract on Optimism , the smart contract doesn't deal with NFTs or Token , is it really worth to write contract on roll-up chain apart from the cost and transaction time.
  • 1
0 votes
0 answers
13 views

EIP-1559: Possible to ONLY use maxPriorityFeePerGas, and no other gas, to pay for a transaction?

My system keeps track of ETH wallets in a local DB. It is preferable that I know exactly what the fee is beforehand, so I can update the DB before broadcasting, and then rollback if anything goes ...
1 vote
3 answers
34 views

How to fix "Type address is not implicitly convertible to expected type address payable"?

Here's the function: function withdrawMoney() public { address payable to = msg.sender; to.transfer(this.getBalance()); } And the error: TypeError: Type address is not ...
0 votes
0 answers
6 views

What is the lowest gas prices can go?

How low can cost of 1 gas get with innovation and best possible outcomes.
  • 1
0 votes
0 answers
12 views

Hardhat HTTPS RPC endpoint

Is there a way to ser Hardhat RPC endpoint as HTTPS instead of HTTP? Thanks!
0 votes
1 answer
17 views

What does this exactly mean, ethereum is a deterministic but practically unbounded state machine..?

So basically Ethereum is a deterministic state machine, understandable but what does the word "unbounded" in this context exactly mean? I am guessing it means it can output an infinite num ...
  • 15
0 votes
2 answers
22 views

How to ".call" a function of another contract which uses ".call"

So, I'm learning advanced smart contract development. Two days ago, I learned about Reentrancy attacks and then I also created two contracts Protocol.sol (vulnerable contract) + Hacker.sol (attacker ...
  • 299
0 votes
0 answers
14 views

Create NFT with large amount (100k++). Is it possible?

If I want to create NFT (can be both 721 or 1155) and support the 100k amount. Is it doable? Or do I have to change structure of token?
0 votes
0 answers
4 views

Validate Ethereum Wallet

How do I validate my own Coinbase Ethereum Wallet via third party node? I have been asked to do so prior to being sent Ethereum to my Coinbase wallet. How does a person do so?
  • 1
0 votes
0 answers
8 views

Truffle test won't return token name

I have been stuck on this part of my Bootcamp for two weeks now pouring over github and asked on stackoverflow. I have googled my error and found nothing as well as deleting my dependencies and ...
0 votes
1 answer
22 views

How does Solidity know where to find imports?

I understand how that Solidity can import files stored both externally import "https://github.com/owner/repo/blob/branch/path/to/Contract.sol"; and internally import "./Foo.sol"; ...
  • 93
0 votes
1 answer
9 views

Possible to connect MetaMask with Discord bot?

I am creating a Discord bot in Javascript which is going to be a crypto game that I want to make, and I would like my users/players to use meta mask as a wallet... Is it possible with an API or a ...
  • 1
0 votes
1 answer
8 views

Why we give crazy amount of approval to DEXs?

I just discovered that we give a crazy amount of approval to DEXs when we approve to swap tokens. What is that? Doesn't that mean their contract can take all the balance? The contract probably doesn'...
0 votes
1 answer
7 views

How to set a moralis provider for building front end?

I am currently building a frontend for my smart contract using ethers and moralis. Part of my dapp functionality requires the creation of a new contract instance using: const contract = new ethers....
0 votes
0 answers
6 views

State of the art about how to specify the NFT URI using OpenZeppelin

When my contract mints an NFT, if I explore the token in the network, I see no image (https://testnet.coinex.net/token/0xAB98748e836682203bbC114AaDF10FF7f3158710?a=1), even tho I'm certain the ...
  • 111
1 vote
1 answer
15 views

I dont understand how to use ABDKMath64x64 for mul and div

If i console.log this ABDKMath64x64.add(3, 2); I get the result of BigNumber { value: "5" } which is correct. But ABDKMath64x64.mul(3, 2); returns BigNumber { value: "0" } and ...
0 votes
1 answer
19 views

How can I find the line of code that caused a transaction to revert?

I'm using hardhat/ethers.js to deploy and test a smart contract that uses Chainlink VRF and Automation, and while testing some of the functions that interact with the Chainlink contracts on the Goerli ...
0 votes
1 answer
11 views

How to speed up prysm sync?

I am using prysm as consensus client to sync; however, it is taking a while to sync from genesis. Is there a way to speed up?
  • 1,156
0 votes
0 answers
10 views

Can't mine transaction in a private Ethereum network by Geth!

There are two separated PCs on a private network and There is a Geth client on each PC, One for sending transactions (I call it Sender Geth), The other is for mining (I call it Miner Geth). The both ...
  • 395
0 votes
1 answer
12 views

How can I know if my rpcUrl is working or not?

I have a 2 rpcUrl, I would like to pick the one that's working. How can I pick the active rpcUrl? Unfortunately, I can't catch the error log on this one. const provider = new ethers.providers....
  • 131
0 votes
1 answer
8 views

Need for rawFulfillRandomWords in ChainLink's VRFConsumerBaseV2

In VRFConsumerBaseV2 the fullfillRandomWords function is made internal and is called via the rawFulfillRandomWords function. function rawFulfillRandomWords(uint256 requestId, uint256[] memory ...
  • 1
0 votes
2 answers
20 views

Iam trying to convert Wei to Eth and iam getting this error below

const enteranceFee = "10000000000000000" iam trying to do ethers.utils.formatUnits(enteranceFee , "ether") but iam getting the error below help me
0 votes
1 answer
11 views

How to swap tokens in my smart contract using pancake swap

I have a BEP20 Token let's call it Token "A" in my smart contract and I want to swap it for another BEP20 Token "B" using pancake swap In my smart contract how can I write a ...
  • 79
0 votes
0 answers
10 views

Getting a wrong getSenderAddress() when signing a transaction

I am trying to sign a transaction using ethereumjs-tx library but I am getting a wrong sender address. I cannot have access to the private key of the user in my dapp, it's why I used the R, S, V ...
0 votes
0 answers
10 views

Can I make a bridge without liquidity?

I started developing what it meant to be a bridge to learn and settle down my Solidity knowledge. I thought it could be done by one person and from what I understood I just needed smart contracts to ...
0 votes
2 answers
18 views

How to keep track of the original msg.sender on Chainlink VRF fullfillRandomWords function?

I'm using Chainlink VRF to get a random number, but I need to keep track of the msg.sender that calls requestRandomWords when the fulfillRandomWords is fired. In other words I need the same msg.sender ...
  • 130
0 votes
1 answer
24 views

Is this EVM high-level definition valid?

I have a problem understanding Ethereum's fundamental concept of EVM. Is EVM an identical VM created by each user(node) in their enviroment(PC) which has a specific architecture(state etc, I get that),...
  • 5
1 vote
0 answers
7 views

Can my contract get on top with flattening instead of the imports?

I use hardhat to flatten my contract which has 2 imports (ERC721 and Ownable). The flattened contract is for verification on Etherscan (actually Croscan) and for users to read the contract. Now my '...
  • 111
0 votes
1 answer
11 views

Can't seem to filter uniswap transactions?

The following code doesn't print any transactions. What am I missing? def main(): uni_v3_router = Web3.toChecksumAddress('0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45') event_filter = w3.eth.filter({...

15 30 50 per page
1
2 3 4 5
958