New answers tagged react
0
Updated code. Thanks @goodvibration!
donate = async () => {
const donationAddress = "0x...";
const accounts = await web3.eth.getAccounts();
this.setState({ account: accounts[0] });
web3.eth.sendTransaction({
to: donationAddress,
from: accounts[0],
value: web3.utils.toWei("1", "ether")
...
0
I got the answer by referring to How do Proxy Upgraded Logic Contracts Share Data
This suggests we have proxy contracts
Top 50 recent answers are included
Related Tags
react × 238web3js × 115
solidity × 90
truffle × 55
metamask × 38
drizzle × 27
dapps × 25
dapp-development × 17
javascript × 14
ethereumjs × 12
go-ethereum × 11
blockchain × 11
events × 9
infura × 8
contract-development × 7
truffle-contract × 7
frontend × 7
truffle-box × 7
ganache × 6
nodejs × 5
arrays × 5
contract-deployment × 4
wallets × 4
ethereum-wallet-dapp × 4
struct × 4