New answers tagged

0

I think what you can do is to call: // TODO: Which providers have close method? if(provider.close) { await provider.close(); // If the cached provider is not cleared, // WalletConnect will default to the existing session // and does not allow to re-scan the QR code with a new wallet. // Depending on your use case you may want or ...


0

In order to return the whole struct you need to use the ABIEncoderV2 and define your own getter function pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; contract Foo { function getPatient(uint id) public view returns (patient memory) { return patients[id]; } }


1

Most of the dApps are fully open source, due to their nature of transparent development on Github. dApps have links to respective Github organisations on their homepages. You can find dApps for example here: https://walletconnect.org/apps And here: https://defipulse.com/ If you want to weed out a particular example check e.g. Uniswap and Aave: https://...


1

Solved rolling back open zeppelin to 2.5.1 and using pragma 0.5.0, drizzle may have some incompatibility issues with the last open zeppelin version


1

I forgot to specify in the call method the account from I was sending the transaction from. checkAccount = async () => { const accounts = await web3.eth.getAccounts(); const data = await tacosavings.methods.getAccount().call({ from: accounts[0] }); const { 0: money, 1: timeLeft } = data; this.setState({ message: `Your ...


0

In order to actually execute the transaction, change call to send The value returned to the off-chain is the receipt of the transaction


Top 50 recent answers are included