New answers tagged

0

There should be no difference. The MyContract.methods.Mymethod().send({from: ..some address}) is a wrapper over sendTransaction (or sendSignedTransaction). For the 1. to work it has to be connected to a wallet provider that will sign the transaction. For example @truffle/hdwallet-provider will sign the transaction with the private key or mnemonic provided.


0

I found this in the Infura docs, might be helpful: It seems like the error 32005 indicates that you're exceeding some predefined limit on the number of requests that the node/server allows you to make? Hope that helps.


0

I also got the same error. However, I updated the Node version(v14.17.0) and it's not throwing 'fs-promise' error. So please update your Node version.


1

It could be practical if you launch it on an L2 (I would suggest Matic, since it has most of the users). You could use Chainlink's VRF for randomizing the driver assignment (driver data would be contained on-chain). The contract execution TX could be initiated by the customer when they place their order on the DApp. More about Chainlink VRF: https://docs....


0

If the front end is not open source, then you have to re create it yourself. I don't know much about it but maybe there is tools to extract code from your browser.


0

I have been into a similar issue and none of answers worked out of the box for me. I have come up with a solution that was tested to work with MetaMask and WalletConnect. I have published a detail answer here: How to verify MetaMask account holder is the real owner of the address?


1

What I can say from my experience, is that none of the above replies worked out of the box for me. This is how I have implemented it (tested with MetaMask and WalletConnect) Frontend web App (ReactApp) Challenge is to sign a nonce (random string) provided by server. This is how a safe sign can be required let sign = await web3.eth.personal.sign(nonce, ...


0

I think you're missing parenthesis in the method call. The following should work: const myId = await this.state.dstock.methods.getId().call({ from: this.state.account });


1

I think, you probably should try to use https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/Clones.sol. It's gas efficient way to clone a given smart contract. Here is more detail about minimal proxy: https://eips.ethereum.org/EIPS/eip-1167


0

There were several audits that found important issues. Both audits won't recommend vyper for use in production. Then the Ethereum Foundation decided to support an alternative implementation in rust, while the original python implementation continues development independently. Vyper is an interesting alternative to solidity but the lack of a production ready ...


-1

Yes if there is web3 component it's for interacting with a blockchain, so it's a dapp.


0

Here's the source for Interact with contract: https://github.com/MyEtherWallet/MyEtherWallet/blob/master/src/layouts/InterfaceLayout/containers/InteractWithContractContainer/InteractWithContractContainer.vue Here's the source for Deploy contract: https://github.com/MyEtherWallet/MyEtherWallet/blob/master/src/layouts/InterfaceLayout/containers/...


0

We're trying to find what you're trying to develop... Considering NFTs have finite editions, meaning you would mint 10000 editions of 5 cards in each, you would have to pre-program amount of highest value cards (out of total 50000), the mount of second most valuable (out of total 50000) and so on. Kinda like lottery scratch cards, there would be ideally only ...


3

A dapp website is a UI that makes it easier to use smart contracts. If the website goes down, you still be able to send transactions to the smart contracts. You could do it by using a library like ethers.js, or by interacting with smart contracts on Etherscan. Some smart contracts have multiple UIs that you might not be aware of. For example, Uniswap is a ...


1

actually in solidity docs it's pointing that for each public member variable there will be a getter is defined automatically. In short you'll be able to get basic type public member like this: let x = await contract.totalAllocPoint(); you've been missing parenthesis here. While you can get array like: let y = await contract.poolInfo(2); if the array length ...


Top 50 recent answers are included