New answers tagged

0 votes
Accepted

Web3.js => _data.trim() is not a function?

forge was compiling diffrently in bytecode there some other elements other than just bytecode. bytecode itself was under object element.
seojunchian's user avatar
0 votes
Accepted

Contract creation confusion -- Unsure when my contract was deployed

The contract address depends only on your address and the nonce, the code itself doesn't matter. Since they both share the same nonce (= 0) you deployed them at the same address.
0xSanson's user avatar
  • 3,154
0 votes
Accepted

How to initialize a smart contract using Remix?

To use the initialize function in Remix you have to follow these steps to deploy your proxy contract: Deploy upgradable contracts using Remix There you will be able to pass the bytes of parameters to ...
Falcon Stakepool's user avatar
0 votes
Accepted

Deploy upgradable contracts using Remix

To deploy an upgradeable contract using Remix you have to do the following: When a UUPS contract is selected in Deploy & Run’s Contract select box, you’ll see some checkboxes below the Deploy ...
Falcon Stakepool's user avatar
0 votes

I found MEV bot on the internet and I want to make sure it is not a scam, please help

I lost $15K in believing such MEV Bot opportunity from here: https://www.youtube.com/watch?v=ivMaJTApKBk I had followed through all the steps to the point of creating a MetaMask wallet. Sure enough, ...
Jaime's user avatar
  • 1
1 vote

I found MEV bot on the internet and I want to make sure it is not a scam, please help

It's a scam. Nobody will share a profitable MEV bot for free.
Franfran's user avatar
  • 583
0 votes

Cannot figure out how to set constructors and ABI for a contract

When deploying a file that has multiple contracts on Remix, make sure you select the right contract you want to deploy
Mouradif's user avatar
  • 289
0 votes

Deploying contract through create2 is returning a zero address

It turns out the error was in this: bytes memory constructorArgs = abi.encode(address(this), initialisationArgs); This acts as the constructor for a contract (WrappedNFT) which implements ...
SMdG's user avatar
  • 1
0 votes

Estimating Gas Cost for Smart Contract Deployment Using Foundry

To estimate the gas cost for deploying a smart contract using Foundry, you can follow these steps: Enable Gas Reports in Foundry Configuration: First, you need to enable gas reports in your Foundry ...
SYED ASAD KAZMI's user avatar
0 votes

Created CA when there are no logs

The contract address are deterministic. They do not need to be retrieved, but they can be calculated from the deployer address + nonce + contract bytecode. If you are deploying with web3.py when you ...
Mikko Ohtamaa's user avatar
0 votes

"Getting 'Promise { <pending> }' Response When Deploying Smart Contract Using Hardhat - How to Resolve?"

As, getAddress() is returning Promise { <pending> }. You need to add await before that too, in order to wait for it to return the actual address value. const contractAddress = await robotNFT....
SYED ASAD KAZMI's user avatar
1 vote

Wrong type of smart contract being instantiated on using new keyword

If you're referring to this line: newPatientSmartContract = new patient(msg.sender, name); Then, indeed it's creating a new patient contract, not RC3. The same can be confirmed by invoking the public ...
SYED ASAD KAZMI's user avatar

Top 50 recent answers are included