Skip to main content

New answers tagged

1 vote

Does an ERC database exist?

A single, centralized database might not exist as you described, but there are several ways to get some information from various sources and compile the same to get the required details, like: You ...
SYED ASAD KAZMI's user avatar
0 votes

hardhat upgradeProxy can not deploy new contract. implement contract is extreme old contract

Finally, I find the answer, always upgrade the contract. await upgrades.upgradeProxy(proxyAddress, YourContract, {redeployImplementation: 'always'}); here is the docs for redeployImplementation https:...
moveFastLink's user avatar
0 votes

Ganache alternative in docker

I ended up using Geth in dev mode with persistence storage. docker-compose.yml version: '3.8' services: geth-dev: image: ethereum/client-go:v1.14.3 volumes: - ./genesis.json:/root/...
Majd TL's user avatar
  • 3,237
1 vote

How to Accurately Implement Fractional Daily Interest in Solidity

Lets say one day 2% annual interest calculated without solidity is: 1 day interest = 2 / 365 = 0.005479452 And 1 day interest in solidity is: 5479452 Lets say reward formula is: rewardTokens for 1 ...
Awais Ahmad's user avatar
0 votes

Open sea.testnet(sepolia)

Please provide more details with the block explorer link You can try tracking whether your NFT is minted properly or not on Block Explorer
Vinit_2311's user avatar
0 votes

Is it possible to create a queue of transasctions?

It is not possible to do it. All transactions, including the ones going to your contract, are subject to be ordered by the validator, possible sorting in an order that maximize his profit with fees. ...
Rafael's user avatar
  • 382
0 votes

Is it possible to create a queue of transasctions?

One wallet can be used to send only one transaction at a time, if you initiate a new txn, your earlier one should be rejected as there would be nonce mismatch.
vampireAb's user avatar
  • 148
0 votes
Accepted

Transactions Order

If you are the issuer of these two transactions, then the nonce can help you guarantee that. What you want is your transaction A to have the nonce N which should strictly equal your number of ...
Franfran's user avatar
  • 623
0 votes

Transactions Order

You can give a higher tip to the miner in the transaction that you want to be first one.
Ougi's user avatar
  • 155
0 votes

TypeError: Cannot read properties of undefined (reading 'getSigner')

It should be accessed using the ethers library of hardhat runtime environment (hre) like: const hre = require("hardhat"); async function main() { const signer = await hre.ethers....
SYED ASAD KAZMI's user avatar
0 votes

Issue with msg.sender. Calling contract B from contract A

It is as you said. The msg.sender is the caller of a transaction (/function call). If a contract B is the caller of a function in an other contract A then this contract B will of course be the msg....
Torof's user avatar
  • 790
2 votes

Projects you made

I’ve made various projects by following the amazing tutorials of Patrick Collins. Patrick, being a Web3 OG, has even started Cyfrin Updraft with an initiative to enable Web3 developers with the skills ...
SYED ASAD KAZMI's user avatar

Top 50 recent answers are included