New answers tagged

1

You can use metamask to sign transaction see their example https://docs.metamask.io/guide/signing-data.html#sign-typed-data-v4 Basically the steps are, const keep_it_hidden = process.env.Key; // this is a private key const CHAINID = 1; const hash_data = web3.utils.soliditySha3(CHAINID, accounts[0] , "some data" ); // any data you want the func to ...


0

I know this response might be a bit late but until just a moment ago I was experiencing the same problem as you. However, I managed to find a solution! Even if you've also managed to get this to work, I'll share how I fixed this for posterity. The reason ipfs.add seems to just not work is that it needs to be part of an async/await function. If it isn't, it ...


0

you should active ssl services in your web page hosts. thats it. i try and solve this problem.


1

Its not straight forward but here is an example from uniswap: uniswap createpair function It boils down to using the evm create2 opcode: create2


1

Contract inheritance is basically just a coding trick. What happens in the compiler, is that all of the code is flattened into a single contract. So if A inherits B and you compile A, the compiler simply inserts the code of B into contract A. Therefore you shouldn't need to deploy the base contract. You only need to deploy the two contracts which inherit ...


2

If your app is on React, you can use react-open-app to enable deep links. If not, you can still borrow its implementation to do it yourself as it's MIT licensed. Also, Metamask Deeplinks is a good tool to get your deeplinks.


0

I had the same problem and I compiled my .sol code more than once and I didn't updated the deployed address, but after updating the deployed address my code worked.


0

See this: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ You need a C compiler to install dependencies web3.py is using.


0

For (2) You can use alert function in your javascript code instead of console.log to view values or trace the program on phone browsers.


1

If you are simply connecting with a dapp, I don't think that they can track you from the blockchain. However if you sign a message to access their features, of course, they can tell.


1

The following piece of code is an extract of what I use in the dapp I've developed. let providerOptions = { "custom-binancechainwallet": { display: { logo: "../../assets/img/binance-logo.svg", name: "Binance Chain Wallet", description: "Connect to your Binance Chain Wallet" }, package: ...


Top 50 recent answers are included